On Sun, Aug 17, 2003 at 07:46:33PM +0900, Meino Christian Cramer wrote: > > Hi, > > Searching through "Programming Ruby" I found the Perl-like "=~" for > matching strings against regexps but I cannot find the opposite > "dont match" operator ( "!~" in Perl ). > > Is there any aequivalent ? batsman@tux-chan:/tmp$ ruby p "aabbaasdff" !~ /bb/ ^D false -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Those who don't understand Linux are doomed to reinvent it, poorly. -- unidentified source