From: "David A. Black" Date: 2005-04-07T19:34:30+09:00 Subject: Re: Regular expression mismatch ? Hi -- On Thu, 7 Apr 2005, Han Holl wrote: > On Apr 7, 2005 10:05 AM, Brian Candler wrote: >> And so it's worth pointing out that in Ruby you should write: >> >> str.untaint if str =~ /\A[a-z0-9]*\z/ # good >> >> and not: >> >> str.untaint if str =~ /^[a-z0-9]*$/ # HIGHLY DANGEROUS >> >> It means that these sorts of regexp are a bit less readable than Perl's. >> >> Regards, >> >> Brian. >> >> > Which leaves the question: what is the meaning if the m suffix in ruby ? The /m suffix means that \n is included in . (dot). David -- David A. Black dblack@wobblini.net