in reply to Reverse regexp a regexp?
In general, a regular expression can match an infinite number of different strings, so you'll have to figure out how to constrain the set to something manageable. As a degenerate case, consider the regex /.*/: what are you planning on going backwards to? How do you make the choices? Once you can answer those questions, you'll be able to make some progress towards what you want.
...roboticus
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reverse regexp a regexp?
by Anonymous Monk on Feb 12, 2010 at 20:27 UTC | |
Re^2: Reverse regexp a regexp?
by freakingwildchild (Scribe) on Feb 13, 2010 at 23:19 UTC |