Both solutions are fine (although the name @badwords is a bit misleading if it contains regexps) depending on what is needed.
In reply to Re^4: Regex Question
by ikegami
in thread Regex Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |