"Escape" the characters in my Search & Replace Action

I am trying to "escape" the characters in my Search & Replace Action but it's not working. Can anyone point out the error? Thanks.

Resulting output should be: SeaWorld \(San Diego\)

Hey Steve,

Please post the actual text of the regular expression, so people don't have to painstakingly reproduce it.

Better yet – post an actual test-case macro.

-Chris

Hope this helps ---> ([!"$&'()*,:;<=>?@[]^`{|}])

Hey Steve,

Yep!  :sunglasses:

It's easy to run into trouble when embedding brackets in a character class.

For safety I've escaped both brackets and parentheses.

-Chris


Escape Special Characters.kmmacros (5.3 KB)

1 Like