in reply to Re: Need Set-like Regex for Perl and Java (golf OK)
in thread Need Set-like Regex for Perl and Java (golf OK)

If this were a Perl-only solution, or if the regex rarely changed, I would code it with a simple naive list, and then pass it once through Regex::Presuf for a little more efficiency. That module then figures out what common prefixes or suffixes can be coded more cleverly.

--
[ e d @ h a l l e y . c c ]

  • Comment on Re^2: Need Set-like Regex for Perl and Java (golf OK)

Replies are listed 'Best First'.
Re^3: Need Set-like Regex for Perl and Java (golf OK)
by diotalevi (Canon) on Jun 09, 2004 at 17:26 UTC
    Oh that's an even better idea. I did that module's work manually to come up with that regex.