I asked a similar question a while ago, and lots of fellow monks helped me at that time, and I learned a lot, (now their names are much more familiar to me than they did back then ;-)
Make some slight changes to some of those solutions, you will get what you want.
I don't want to steal their smart solutions, and make those look like mine, so I just give you the link to that thread, you can see those solutions and their authors.
In reply to Re: silly regex question
by pg
in thread silly regex question
by batkins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |