Does anyone know an easy way to alter regular expressions programmatically?
Ideally, I'd like to find a way to alter the kind of tree that use re qw/debug/; produces. All of this in order to let users input their own regular expressions that a program could alter in a 'nice' way. (removing 'EVAL' nodes, for example)
The types of regular expressions we'll use are likely simple enough that we'll end up using text substitution, but it'd be nice to have something around for RE manipulation in general.
In reply to Altering regular expression trees by benizi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |