hi!
what is the easiest way to delete all lines and signs (just everything)
from a file till a special word comes?
([[:alnum:]]+)stoprighthere did not work.
some for the rest. how do i delete everything from a word onward?
like: fromhere([[:alnum:]]+)
thanks! marti
DELETE TILL and DELETYE FROM
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
To delete everything up to but not including stoprighthere:
To delete everything from and including fromhere:Find what: .*stoprighthere
Replace with: stoprighthere
[X] Regular expression
Options
[ ] '.' does not match a newline character [i.e., not selected]
Find what: fromhere.*
Replace with: [nothing]
[X] Regular expression
Options
[ ] '.' does not match a newline character [i.e., not selected]
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm