ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Doug Borg     Newton, MA, USA  
Date: May 11,2019 at 12:01
In Response to: [Help!] Search for text and replace with key (Neil Clough)

> > Replace with 2 key strokes
> >
> > to rejoin the lines.
> >
> > Is this possible ?
> >
> > Is there another way?
> >
> > Thanks,
> Not sure why text has lines through it !!!

Your text has lines through it because it was probably accidentally tagged with the strikeout HTML sequence "< s >text< /s >".

With respect to the line splitting problem, IMO, this is a job for a text editor.

I use TextPad v8.1.2 as my text editor. TextPad can do text Search and Replace with regular expressions; its regular expression syntax is based on Perl. So, in the following, when I refer to "regular expression" I am referring to TextPad's implementation of Perl.

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?

Thread locked

Messages in this Thread

95,075 Postings in 11,986 Threads, 350 registered users, 114 users online (0 registered, 114 guests)
Index | Admin contact |   Forum Time: Aug 12, 2020 - 10:47 pm EDT  |  Hits:33,074,306  (22,664 Today )
RSS Feed