You are here: PSPad forum > English discussion forum > Re: How to search for CRLF in user convertor

Re: How to search for CRLF in user convertor

#1 How to search for CRLF in user convertor

Posted by: DianaS | Date: 2013-01-25 08:57 | IP: IP Logged

Thank you so much for this fantastic software! smiling smiley
My question is, how can I express a search for crlf/0D0A (ansi) in a user convertor? I couldn't find anything on this in the forum and maybe it's not possible?
I tried with the regular expressions as in S&R, like this:

SP - \r\nEP - |=300 \\$ap.

but that didn't work.
Thank you in advance.

Options: Reply | Quote | Up ^


#2 Re: How to search for CRLF in user convertor

Posted by: pspad | Date: 2013-01-25 09:36 | IP: IP Logged

I am afraid User convertor wont help you.
It search document line by line

Options: Reply | Quote | Up ^


#3 Re: How to search for CRLF in user convertor

Posted by: DianaS | Date: 2013-01-26 08:28 | IP: IP Logged

Pity, but thank you anyway.
smiling smiley

Options: Reply | Quote | Up ^


#4 Re: How to search for CRLF in user convertor

Posted by: vbr | Date: 2013-01-26 08:50 | IP: IP Logged

DianaS:
Thank you so much for this fantastic software! smiling smiley
My question is, how can I express a search for crlf/0D0A (ansi) in a user convertor? I couldn't find anything on this in the forum and maybe it's not possible?
I tried with the regular expressions as in S&R, like this:

SP - \r\nEP - |=300 \\$ap.

but that didn't work.
Thank you in advance.

Hi,
if you want to perform a series of regex replacements on the whole text file, you might try to use a script.
See an older post on this topic:
forum.pspad.com

The javascript regex flavour is supported in that case, i.e. you might use your pattern almost directly, i.e.
\r\n for CRLF
(There are some limitations, epsecially in handling of unicode characters with scripts, outside of the national ansi codepage though.)

hth,
vbr

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR