delete text from beginning to a specified ending string

Find, replace, find in files, replace in files, regular expressions

delete text from beginning to a specified ending string

Postby elim » Tue Nov 28, 2006 1:43 pm

I have many files need to be modified by removing some heading text and tailing text (the heading text is given by its ending string and the tailing text is given by its starting string)

I hope UEStudio can do that but I don't know how.

Thnks for any help
User avatar
elim
Newbie
 
Posts: 5
Joined: Mon Sep 12, 2005 11:00 pm

Re: delete text from beginning to a specified ending string

Postby Mofi » Tue Nov 28, 2006 2:23 pm

This is not a regular expression search and replace issue because a regex can't do that. But you can do that with following method - copied from help of UltraEdit/UEStudio - page for Find command:

To select all text between the cursor position and the search target, hold down the SHIFT key at the time the search is started with the Find Next button.

This special search with selection can be also recorded into a macro.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Find/Replace/Regular Expressions

cron