Even so, it's possible to reverse a limited subset of regexen, so it still might be a workable approach for your situation.
In reply to Re^2: Regex::Reverse tricky test cases
by Roy Johnson
in thread Regex::Reverse tricky test cases
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |