B
Bill
Hello,
I wonder if anyone is aware of a package that will rewrite a set of
regex patterns to reduce their number. For example, given the four
regex patterns
/all\d+ of the/
/crab.*apple tree/
/all 3 of them/
/crabapple tree/
reduce to something like
/crab.*apple tree/
/all\d+ of them?/
that will match the same set of strings.
I don't need something that just does an 'or' of all the supplied regexes
into one though.
I wonder if anyone is aware of a package that will rewrite a set of
regex patterns to reduce their number. For example, given the four
regex patterns
/all\d+ of the/
/crab.*apple tree/
/all 3 of them/
/crabapple tree/
reduce to something like
/crab.*apple tree/
/all\d+ of them?/
that will match the same set of strings.
I don't need something that just does an 'or' of all the supplied regexes
into one though.