Hi,
Can someone please explain to me why this simple regex substitution
won't work?

Source data file:
<purpose>Reauthorization of collaborative weather modification
research program within Department of Commerce/NOAA Weather modification
research appropriations</purpose>

My script line:
xmlfile.gsub!(/<purpose>(.*)<\/purpose>/mi, '<row><entry><text><emph
face="b">Purpose: </emph><entry><text>\1')

The data stays the same. The line isn't converted.

Thanks a lot,
Peter
-- 
Posted via http://www.ruby-forum.com/.