From: Heesob Park Date: 2008-05-08T11:24:03+09:00 Subject: Re: Check if char in string? Hi, 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]/ > > doesnt work though... > You can do like this: if str[x].chr !~ /[aeiouy]/ Or unless str[x].chr =~ /[aeiouy]/ Regards, Park Heesob -- Posted via http://www.ruby-forum.com/.