REGEX: How to Select the Outside of a String Only

I’m trying to create a Regular Expression:
##==WORDS==
I want to capture and replace “##==” and “==” while leaving the WORDS alone. Is that possible? Is there a way to have the output be [new expression]WORDS[new expression2]

e.g.
(old expression1)oldWORDS(oldexpression2) and output (new expression1)oldWORDS(new expression2)

Whatever strength I had in Regex is fading away, so cannot give you anything definitive other than to suggest looking up ‘word boundary’.

1 Like