ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Search for text and replace with <del> key   [Help!]

By: Martijn Coppoolse   Homepage   Voorburg, NL  
Date: May 13,2019 at 01:29
In Response to: [Help!] Search for text and replace with key (Neil Clough)

> > Therefore, I would do a global S&R for the string "\$\n"
> (where
> > "\$" is an ESCAPE sequence that turns the "$" special character
> > which stands for EOL in a regular expression into a simple text
> character
> > and "\n" matches any line ending character sequence), and leave
> the
> > replacement field blank. I just tested it out on some sample text
> and it
> > seemed to work.
> >
> > Does that technique work for you?
>
> Hi Doug
>
> Thanks for suggestion. Works exactly as needed.
>
> I had to use TextPad.
>
> My regular editor is PSPad (Freeware recommend by Laurent many moons
> ago) which is a fantastic editor (apart from this requirement !!)
>
> It says it is doing a Regex Search and replace but it doesn't
> understand "/$/?n" so does not work for my case.

Take care to use the proper (back)slashes: /$/n means something completely different than \$\n...


--
Martijn

48 views      
 

Messages in this Thread

 
94,273 Postings in 11,892 Threads, 347 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: May 19, 2019 - 5:34 pm EDT  |  Hits:27,728,852  (10,790 Today )
RSS Feed