in reply to Re: reversing a compiled regex?
in thread reversing a compiled regex?

The solution I did indeed use in the end. I think your sig is relevant here ;-)

Well, almost. Actually I just gave "equals" and "not equals" (et cetera) the same keys in the regex and then did roughly:

if ($key =~ /not/) { return $string !~ /$rx/; } else { return $string =~ /$rx/; }

andramoiennepemousapolutropon

Replies are listed 'Best First'.
Re3: reversing a compiled regex?
by dragonchild (Archbishop) on Mar 27, 2003 at 15:05 UTC
    *grins* If it's all you need, then it's all you need. :-)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.