Page 1 of 1

Newline in Regex replace

Posted: Wed Apr 27, 2022 6:39 pm
by jgkoehn
Greetings,
Not directly TRichView related but indirectly related.
Using Delphi built in Regex for Delphi 11.1
How can one add a newline in the Replace (Not in the Search)
W know you can do (\n) or (\r\n) from the Search and do $1 but that is not what we are looking for. Specifically in the Default Regex engine for Delphi 11.1. Thanks

Re: Newline in Regex replace

Posted: Fri May 13, 2022 7:51 pm
by jgkoehn
I figured out a way to substitute \r for #13 and \n for #10