I need a regular expression that matches some tags surrounded with square brackets. Nothing fancy, I just need it to match the tags. Like these:
[quote]
[/quote]
[b]
[url]
etc
I don’t need it to worry about closing tags or anything. I just want to get a collection of all tags within a text. My regular expression knowledge is more than limited.
If you aren’t worried about matching the end or nesting or any of those silly complications, this will match and capture those tags: