Newline in Regex replace

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 289
Joined: Thu Feb 20, 2020 9:32 pm

Newline in Regex replace

Post 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
jgkoehn
Posts: 289
Joined: Thu Feb 20, 2020 9:32 pm

Re: Newline in Regex replace

Post by jgkoehn »

I figured out a way to substitute \r for #13 and \n for #10
Post Reply