Would using study help here?
Note this is only a question, not a recommendation — I've never used study, but from its docs this sounds like a situation where it might help.
Smylers
In reply to Would study help this regexp's performance?
by Smylers
in thread Surprisingly poor regex performance
by sgifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |