If you just want to distinguish those two strings, then see above.
If there might be other strings involved (and there usually are), then you might want to think a bit further.
In either case, have you read this?
I'm fairly sure it's all in there.
In reply to Re: Regex letter order matching
by mtmcc
in thread Regex letter order matching
by cspctec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |