I would like to collect the text after the brackets match in number without knowing
how many
brackets there are...
>> text1
== {some words until my-tag < something < some more > still included > to be copied to
rest > this
also}
>> count: 0
== 0
>> parse text1 [copy text2 thru "my-tag" any [thru "<" (count: count + 1)| thru ">"
>(count: count -
1)] "this also"]
== true
>> text2
== "some words until my-tag"
>> count
== -1
I would like to collect the text within matching brackets to one or more variables:
"< something < some more > still included >"
and the rest:
"to be copied to rest > this also" also to another (one or more variables)
Is it possible to use count and stop
any [ thru "<" | thru ">" ]
when count is zero?
Is there an easier way to parse "matching brackets ocurring after a specific tag"?
Thanks for any help.
Antonio