delte string plus /n

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
ha-kg
Posts: 4
Joined: Tue May 03, 2011 9:22 am

delte string plus /n

Post by ha-kg »

I want to delete at the end of a line a certain text plus the linefeeed.

For example I have:
powerful, general purpose editor for plain text files.
Easy to use, with all the features a power user

I need:
powerful, Easy to use, with all the features a power user

general purpose editor for plain text files. /N does not work.

Thank you
Hartmut
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Not /N but \n.

Don't forget to select Regular expression.
ha-kg
Posts: 4
Joined: Tue May 03, 2011 9:22 am

Post by ha-kg »

sorry you are right it must be \n


general purpose editor for plain text files. /n

and regular expression marked, does not work
I receive:
regular expression "general purpose editor for plain text files. /n"
not found.
The problem is the combination of the text string with a regular expression in one replace operation.
Hartmut
User avatar
SteveH
Posts: 327
Joined: Thu Apr 03, 2003 11:37 am
Location: Edinburgh, Scotland
Contact:

Post by SteveH »

I think it needs to be a '\' before the 'n'.

You are still using the forward slash '/'.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
ha-kg
Posts: 4
Joined: Tue May 03, 2011 9:22 am

Post by ha-kg »

Thank you but \n too does not work,

Hartmut
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

It does work.

Your regular expression has a space before the newline. Does your text have a space there?
ha-kg
Posts: 4
Joined: Tue May 03, 2011 9:22 am

Post by ha-kg »

Thank you very much, that was the reason, sometime yo do not see the forest for the trees
Hartmut
Post Reply