Skip to main content
grudgemom
Known Participant
July 30, 2018
Answered

Escaping special characters in FindChangeByList

  • July 30, 2018
  • 1 reply
  • 1140 views

Hi folks!

I'm having some trouble with my FindChangeByList and want to be sure I'm doing it correctly.

I'm trying to find a text string "$U.S."

In my FindChangeByList file I have escaped the special characters as "\$U\.S\." but it still does not find the string.

Same for the characters $ ( ) . ' -

Just a \ in front of each, right? So why isn't it working?

Thanks!

This topic has been closed for replies.
Correct answer Laubender

Escape the escapes as well :-)

"\\$U\\.S\\."

Regards,
Uwe

1 reply

LaubenderCommunity ExpertCorrect answer
Community Expert
July 30, 2018

Escape the escapes as well :-)

"\\$U\\.S\\."

Regards,
Uwe

grudgemom
grudgemomAuthor
Known Participant
July 31, 2018

Partially correct. I thought you were out of your mind but the double escape is what works. BUT I don't actually need to escape . ' - just $ and ( ). Thank you!

Community Expert
July 31, 2018

Oh. You need to escape the dots.

Otherwise you could find something like $USSR ;-)

I'm kidding, but remember: A simple dot stands for any character in GREP land.

Reards,
Uwe