okay, for some reason, i am not getting this… i am feeling very
stupid…
i am trying to find a case where the regex does NOT match…
i have tried:
string !=~/regex/
but this doesn’t seem to work…
anyone have any ideas how to do this?
thanks!
okay, for some reason, i am not getting this… i am feeling very
stupid…
i am trying to find a case where the regex does NOT match…
i have tried:
string !=~/regex/
but this doesn’t seem to work…
anyone have any ideas how to do this?
thanks!
Hi –
On Tue, 17 Feb 2009, Sergio R. wrote:
okay, for some reason, i am not getting this… i am feeling very
stupid…i am trying to find a case where the regex does NOT match…
i have tried:
string !=~/regex/
but this doesn’t seem to work…
string !~ /regex/
David
–
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (The Well-Grounded Rubyist)
Ruby Training Atlanta! April 1-3, ruby training, atlanta, april 2009 - entp
string !~ /regex/
David
wow!
that totally worked!
thanks SO much!
i can’t believe that was so hard to find!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs