If you have access to Perl version 5.18+ (I have not ATM), you may find the experimental Extended Bracketed Character Classes provide some food for thought. I'm not sure just how they would apply to your problem as originally stated (and as I say, I couldn't test any application if I could see one), but they look really interesting...
In reply to Re: Regex matching words with numbers, but not numbers.
by AnomalousMonk
in thread Regex matching words with numbers, but not numbers.
by lplo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |