If you really want to go with regexes, this will give you a general idea of how it would be done:
TPJ regex article by japhy
-- ank
In reply to Re: regex for word puzzle
by ank
in thread regex for word puzzle
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |