Page 1 of 1

RegEx help: match carriagereturn & linefeed

Posted: Tue Apr 10, 2018 3:54 pm
by leefranke
I need to remove all the carriage-return and linefeeds (hex: 0D & 0A) from a file and \r \n doesn't seem to work.

If I could get some assistance with this, it would be appreciated.

thanks,

lee

Re: RegEx help: match carriagereturn & linefeed

Posted: Wed Apr 11, 2018 9:11 am
by Radu
Hi,

In the Find/Replace in Files dialog there is a "Regular Expression" checkbox. If you check it, you can for example search for:

Code: Select all

(\r|\n)
and replace it with nothing.

Regards,
Radu

Re: RegEx help: match carriagereturn & linefeed

Posted: Wed Apr 11, 2018 3:57 pm
by leefranke
The parenthesis is what I was missing!

Thanks,

lee