From: James Edward Gray II Date: 2005-04-29T21:55:21+09:00 Subject: Re: Inverting a regular expression? 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