replase blocks of text, ex. lists

General discussions about Advanced Find and Replace
Post Reply
urban32
Posts: 3
Joined: Sun Oct 02, 2005 6:54 pm

replase blocks of text, ex. lists

Post by urban32 » Sun Oct 02, 2005 7:03 pm

I need to simple replace texts that start with A... and end with ...B :lol:
For example:
<ul class=level3>
<li><img src=../../images/no_.gif>&nbsp;<a href=02_01_02_01.htm>wert</a>
<li><img src=../../images/no_.gif>&nbsp;<a href=02_01_02_02.htm>dfhg</a>
<li><img src=../../images/no_.gif>&nbsp;<a href=02_01_02_03.htm>dsfhjj</a>
<li><img src=../../images/no_.gif>&nbsp;<a href=02_01_02_04.htm>asdf</a>
<li><img src=../../images/no_.gif>&nbsp;<a href=02_01_02_05.htm>qwer (some text)</a>
</ul>


I need to remove all lists level3 (<ul class=level3>......</ul>).

How can I do this? Help me please!!! :)

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Sun Oct 02, 2005 7:38 pm

Hi,

Use the following:

Go to main menu - Action - Options - Batch replace
check ON "Modifier S".

In main window of the program:
Go to Batch replace, check on "Use regular expressions".

Search for:
<ul class=level3>.*</ul>

Replace with should be empty.


So, .* means any char and modifier S will threat all line breaks as it
would be a single line.

That's all.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

urban32
Posts: 3
Joined: Sun Oct 02, 2005 6:54 pm

Post by urban32 » Sun Oct 02, 2005 7:53 pm

Thanx a lot for fast reply! :)
I will try!

urban32
Posts: 3
Joined: Sun Oct 02, 2005 6:54 pm

Post by urban32 » Sun Oct 02, 2005 8:10 pm

Ooo! It really works!!!! :wink: Cool! I find this tool at least two weeks! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests