Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Regular Expression Testby Laurent_R (Canon) |
on May 05, 2017 at 21:19 UTC ( [id://1189618]=note: print w/replies, xml ) | Need Help?? |
Then I am afraid it probably can't be done.
All the regex examples you've shown are deterministic, so to speak, but how would you expand, for example, a quantifier such as * or +? a+ could be anything like "a", "aa", "aaa", and so on. How would you express anchors? Zero-width assertions? Greedy and non-greedy quantifiers? And so on. Or you would have to explain how you want them to be translated. Or perhaps I missed what you're looking for?
In Section
Seekers of Perl Wisdom
|
|