How can I get text between “tags” [b][/b] from this text?
Here is some
[b]
bold text [b]abcd[/b]
[/b]
and here is [b]another bold text[/b]
I neet to get
- bold text [b]abcd[/b]
- abcd (I will get this using recursion)
- another bold text
Please help with regular expression!
Thank you!
Regex is the wrong tool for this task. If you can control the input format, why not use proper XML:
and then use an XML parser?