From: Jim Cochrane Date: 2008-05-08T15:30:04+09:00 Subject: Re: Check if char in string? On 2008-05-08, globalrev wrote: > this way: > if str[x].chr =~ /[aeiouy]/ > i can see if a char is any of the chars aeioyu > > but i want to see if its not... > if str[x].chr !=~ /[aeiouy]/ how about something like: if not str[x].chr =~ /[aeiouy]/ then print "YO\n" end OR if str[x].chr !~ /[aeiouy]/ then print "YO\n" end --