From: SpringFlowers AutumnMoon Date: 2007-10-01T01:51:48+09:00 Subject: Re: Regular Expression newbie question about upper & lower case Peter Vanderhaden wrote: > I want to check for both upper & lower case answers when a user keys in > a response to a question, but I haven't been able to find an example of > the syntax. What I'm looking for is something like this: > > If $ans = [Yy]* > > I know this syntax isn't correct, but what I want it to do is accept Y, > y, yes, YeS, yippee, etc. Would someone mind posting an example? > Thanks.... something like a =~ /^y/i will do -- Posted via http://www.ruby-forum.com/.