P is for Practical | |
PerlMonks |
Re^3: Regex partial/leading matchby RichardK (Parson) |
on Dec 31, 2015 at 23:37 UTC ( [id://1151646]=note: print w/replies, xml ) | Need Help?? |
Part of your problem here, is that you have more information than you're giving the computer. i.e. they're not just regex but file system path expressions. You might take advantage of that knowledge and decompose the regex into a set of File::Find::Rule rules, obviously you'll have to write the parser youself, but hopefully all the regexes will be quite similar and there will be common patterns that you can spot and translate into rules. So you might end up with something like :-
It's an interesting problem and well worth spending some time on.
In Section
Seekers of Perl Wisdom
|
|