From: Han Holl Date: 2005-04-07T18:29:42+09:00 Subject: Re: Regular expression mismatch ? 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 ? It would seem that multi-line is on by default, with no means to switch it off. Ruby should not be different from the other RE engines with no good reason. Cheers, Han Holl