Maybe take a look at chapter 6.5 "Regex String Generation" of Dominus's excellent "Higher-Order Perl" book (free download here). Sez MJD:
Given a regex, how can one generate a list of all the strings matched by the regex? The problem can be rather difficult to solve. But the solution with streams is straightforward and compact.So there you have it: "rather difficult to solve," "straightforward and compact," what are we waiting for?
Give a man a fish: <%-{-{-{-<
In reply to Re: Searching for regular expression overlaps
by AnomalousMonk
in thread Searching for regular expression overlaps
by Giardap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |