* Peter Bailey <pbailey / bna.com> (21:18) schrieb:

>> line.gsub!(/<registrantName>(.*)<\/registrantName>/,'<SUB.HEAD4>\1</SUB.HEAD4>')

> Thank you, Jano. Yes, this worked for me now.

Please note that regular expressions aren't a very good way to parse
XML. The above expression subgroup will match everything between the
first "<registrantName>" and the last "</registrantName>" which is
probably not what you want.

You can can use non-greedy *? as a workaround in this case.

mfg,                      simon .... l