Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
replacerx
#1
i have a dialog that uses rx to search and replace stuff in the clipboard.

i can use "\r\n" to find a new line code and replace it with "," (for example) but when i try to go backwards (ie find "," and replace with "\r\n" (a new line) it just replaces the "," with the actual characters.

why wont this work in reverse?

thanks.
An old blog on QM coding and automation.

The Macro Hook
#2
I think you have to use "[]" as a newline char in a QM string and as you said "\r\n" in a regex.
Matt B
#3
\r and \n are special characters in regular expression, but not in replacement string. In replacement string only $ are special characters. Use [] (except in Find dialog).


Forum Jump:


Users browsing this thread: 1 Guest(s)