From: Peter Bailey Date: 2007-08-20T22:16:33+09:00 Subject: regex not gsubbing for me. Hi, Can someone please explain to me why this simple regex substitution won't work? Source data file: Reauthorization of collaborative weather modification research program within Department of Commerce/NOAA Weather modification research appropriations My script line: xmlfile.gsub!(/(.*)<\/purpose>/mi, 'Purpose: \1') The data stays the same. The line isn't converted. Thanks a lot, Peter -- Posted via http://www.ruby-forum.com/.