Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

Replacing hyphens with non-breaking hyphens only in certain numbers

Dear experts:

I would like to replace  hyphens in numbers with non breaking hyphens

The replacement should solely occur in numbers with the following make up:

45-237-59-33, 89-454-33-22, 97-345-22-11

I succeeded in coming up with the search term (wildchards checked)
[0-9]{2}-[0-9]{3}-[0-9]{2}-[0-9]{2}

But I got no idea what to put into the replace field ???

I know the search/replace symbol for a non-breaking hyphen is ^~

Help is very much appreciated. Thank you very much in advance.

Regards, Andreas
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreas Hermle

ASKER

wow, great, this did the trick.
Thank you very much for your quick and professional support. I really appreciate it.

Regards, Andreas