Personally, I'd just do this: s{<([^/>]+?)/>}{<$1></$1>}g. Only if this didn't work for some peculiar reason would I bother with a more complicated solution.
Jim
UPDATE: A possibly better alternative: s{<(\w+)/>}{<$1></$1>}ag. (Notice the /a character set modifier, which is purposeful.)
In reply to Re: How can I add missing XML open tags
by Jim
in thread How can I add missing XML open tags
by TheVend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |