Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex help
#1
Hi all, Hi Gintaras,

a little help on this one.

I have a str variable formatted as:

some text [text1] (text2) [text3] someothertext (text4)

I'd like to extract text1,text2,text3 and text4 from the the string,
BUT:

the string is not formatted exactly like that, ie the brackets and/or parenthesis pairs can have
any position and be 1 or 10 or any number

Simply, how to get ALL texts items in brackets or parenthesis in the string, whatever the number they are and their position.

Can't achieve that with findrx..

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)