in reply to Getting a list of all possible pattern matches

CPAN helps: Regexp::Genex.

Update: It seems that a period . in your regex corresponds to \d in Perl, so you'd have to translate your patterns slightly before using Regexp::Genex.

Replies are listed 'Best First'.
Re^2: Getting a list of all possible pattern matches
by inoci (Scribe) on Dec 13, 2007 at 19:33 UTC
    close, but Regexp::Genex appears to randomize the results for anything that has more than one possible match. this is apparently by design. so instead of getting a list of numbers, i get a different one each time.