Excellent - your "Update" one works !
The pre-update fails when the tag is absent.
I saw this the same time as hauxex's working solution, below .. So I declare both winners !
Thanks.
All power corrupts, but we need electricity.
Comment on Re^9: Regex Optional capture doesn't (solved ?)