I'm using Keyboard Maestro on my Mac to perform a regex find-replace in an nvALT document.
The Keyboard Maestro part of it is not that complicated. It just copies selected text from nvALT, performs the find-replace, and then pastes the text.
I can capture line breaks, but can't seem to put them back in. For example, if I take the text
penguin
horse
robot
Setting the "find" string to
(?m)\n
and the "replace" string to
\n
Then I get
penguinnhorsenrobot
Obviously, the query is seeing and finding line breaks. I can't figure out what I'm doing wrong.
Thanks