brettr
asked on
Help with regular expression
I have a string similar to this:
\root\sub1\sub2
I need it reformatted to this:
\\++root--\\++sub1--\\++su b2--
Using this only replaces the slash and original text: \\[a-z]*. Howevr, I don't want to replace the original text. How can I surround the original text like the above?
\root\sub1\sub2
I need it reformatted to this:
\\++root--\\++sub1--\\++su
Using this only replaces the slash and original text: \\[a-z]*. Howevr, I don't want to replace the original text. How can I surround the original text like the above?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very clean KarinLoos. Thanks.
ASKER