Page 1 of 1
delte string plus /n
Posted: Tue May 03, 2011 9:31 am
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
Posted: Tue May 03, 2011 10:06 am
by ben_josephs
Not /N but \n.
Don't forget to select Regular expression.
Posted: Tue May 03, 2011 10:47 am
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
Posted: Tue May 03, 2011 11:32 am
by SteveH
I think it needs to be a '\' before the 'n'.
You are still using the forward slash '/'.
Posted: Tue May 03, 2011 11:59 am
by ha-kg
Thank you but \n too does not work,
Hartmut
Posted: Tue May 03, 2011 12:11 pm
by ben_josephs
It does work.
Your regular expression has a space before the newline. Does your text have a space there?
Posted: Tue May 03, 2011 1:10 pm
by ha-kg
Thank you very much, that was the reason, sometime yo do not see the forest for the trees
Hartmut