I tried to find the answer to my problem in the questions history but they just come back in more than one thousand and after scanning through a few tens of matching answers
in Javascript console works this. Watch out for \\d:
\\d
replacedString = "rx14ax145N".replace(RegExp("x14(?!\\d)", "g"), "___"); r___ax145N