HT make gsub not case sensitive

Great! Thanks!

···

-----Original Message-----
From: Chris Morris [mailto:chrismo@clabs.org]
Sent: Tuesday, August 13, 2002 4:44 PM
To: ruby-talk@ruby-lang.org
Subject: RE: HT make gsub not case sensitive…

some_big_string.gsub!(/soMe_sUbString_1/, some_substring_2)

Just stick an ‘i’ outside your // on the regex:

some_big_string.gsub!(/soMe_sUbString_1/i, some_substring_2)

Chris
http://clabs.org