in reply to Searching for regular expression overlaps
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: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching for regular expression overlaps
by LanX (Saint) on Aug 12, 2016 at 20:27 UTC | |
by AnomalousMonk (Archbishop) on Aug 12, 2016 at 23:23 UTC | |
by LanX (Saint) on Aug 12, 2016 at 23:56 UTC | |
|
Re^2: Searching for regular expression overlaps
by LanX (Saint) on Aug 12, 2016 at 18:36 UTC |