in reply to Regex to undo a regex?

A couple of thoughts.

I hope these ideas help you.

Cheers,

JohnGG

Update: Fixed typo, s/to/so/.