I am having trouble trying to put a regular expression in the right order. It’s for C#, could anyone please help?
Im trying to replace the sas to say yyy.
Original: sas sas2 sas-def def-sas SASsas
The result should be
Result: yyy yyy2 yyy-def def-yyy SASsas
So you can see I want to replace the sas whenever it doesn’t have a letter on either side of it.
Driving me nuts!
You need to use both a negative lookahead and a negative lookbehind: