in reply to Regex question

Could you give us an example of what went wrong? You're right, all three substitutions ought to be equivalent.