in reply to A would-be simple substitution...

Remember that ".+?" is not doing what you think!

If you want to indicate 0 or more matches, the regexp operator is "*".

The combination of +? and *? tells that it will match until find the next occurrence. Soo, we use this combination for things like that:

## to look until find > /<.*?>/ ## if we use just .*, the next occurrence will never be ## found, since .* already get everything. ## So +? is just the same thing of .*, but is for 1 or ## more occurrences.
Cheers.

Graciliano M. P.
"Creativity is the expression of the liberty".