There's more than one way to do things | |
PerlMonks |
Re: Searching for regular expression overlapsby LanX (Saint) |
on Aug 12, 2016 at 16:27 UTC ( [id://1169659]=note: print w/replies, xml ) | Need Help?? |
Perl's regexp are a language on their own, if you REALLY˛ allow the full spectrum of features this is not imaginable for me.° I'm sure there are some computer science theorems proving this. (probably Halting problem?) The only way I could see is with a restricted rules language, which is translated to regexp later. Most likely a XY Problem ... ... monitoring if newly added rules also match already matched filenames and raising an alarm should be good enough.
Cheers Rolf
°) as a side note, you can also embed Perl-code in regexes ˛) from arbitrary sources ... that's crazy
In Section
Seekers of Perl Wisdom
|
|