On Sat, 28 Aug 2004, Mark Maunder wrote:
I suspect you're right. For the archives, on my attempt to solve this I came across the following useful modules:
...so why didn't you look before asking ?
Anyway, you said you want a tool to take a set of strings, some that you want to match, some that you don't, and automatically generate a regex to determine the difference.
From this, it sounds like parsing a given regex doesn't get youanywhere, because you made it seem like you don't have one to start with. That appears to go against much of this list, leaving only --
Regexp::List - builds regular expressions out of a list of words
-- which sounds like a simpler task than what you asked for. From the description, it may be doing little more than transforming
@words = qw[ first second third ];
into
$regex = qq[(first|second|third)];
and using that for pattern matching.
If that's all you need, then you're all set, but from the way your first described the problem, it sounded much more complex than this.
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'Wherever I May Roam' by Apocalyptica from 'Plays Metallica By Four Cellos'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>