I need a regex to remove "bad" tags and keep the good ones from a string.
Here are some examples of what are considered good tags (assuming each of them is an input string):
I need to remove the ones below:[b]bold text[/b] [color=Red]Red text text[/color] [color=Red][b]Red bold text[/b][/color]
That is, without any text in between the tags.[b][/b] [color=Red][/color] [color=Red][b][/b][/color]
Is there an easy way to do that?
Thanks in advance :)
In reply to Regex help by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |