On Apr 29, 2005, at 12:56 AM, Harry Ohlsen wrote:

> A colleague of mine just asked me whether it was possible to invert an
> arbitrary regular expression.  Ie, create a new regular expression that
> matches whatever the original *didn't*.

Switch from =~ to !~?  :)

I know that's not what you asked, I'm just making sure we covered the 
obvious.

James Edward Gray II