Mark/Delete all lines between 2 character strings

General questions about using TextPad

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

Post Reply
elcaro
Posts: 7
Joined: Fri May 25, 2012 9:38 pm

Mark/Delete all lines between 2 character strings

Post by elcaro »

Hi,

I have a large XML document and I want to delete a section which begins with <LIST_LINEDATA> and ends with </LIST_LINEDATA>.

How do I mark/delete all lines between these 2 tags?

Thanks in advance.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

  1. Click Search > Find.
  2. Ensure Extend selection is not selected.
  3. In Find what, enter <LIST_LINEDATA> and click Find Next.
  4. Select Extend selection.
  5. In Find what, enter </LIST_LINEDATA> and click Find Next.
elcaro
Posts: 7
Joined: Fri May 25, 2012 9:38 pm

Post by elcaro »

ak47wong - thank you so much. your solution works like a charm.
Post Reply