From: Wayne Brissette Date: 2012-09-07T17:40:59+09:00 Subject: Re: Not Match? --Apple-Mail=_ACC829F3-67E0-4A50-9CDC-B2CF98B4D31F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 7, 2012, at 2:43 AM, Lars Haugseth wrote: >=20 > Just negate the match condition with an exclamation mark: >=20 > if !xxx.match(/found/) > puts "No match" > end >=20 That's exactly what I was trying to do. I just didn't put the = exclamation point at the proper place. Thanks!=20 --Apple-Mail=_ACC829F3-67E0-4A50-9CDC-B2CF98B4D31F Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
On Sep 7, 2012, at 2:43 AM, Lars Haugseth wrote:

Just negate the match condition with an exclamation mark:

 if !xxx.match(/found/)
   puts "No match"
 end


That's exactly what I was trying to do. I just didn't put the exclamation point at the proper place. Thanks! 

--Apple-Mail=_ACC829F3-67E0-4A50-9CDC-B2CF98B4D31F--