Page 1 of 1

replase blocks of text, ex. lists

Posted: Sun Oct 02, 2005 7:03 pm
by urban32
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!!! :)

Posted: Sun Oct 02, 2005 7:38 pm
by Abacre
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.

Posted: Sun Oct 02, 2005 7:53 pm
by urban32
Thanx a lot for fast reply! :)
I will try!

Posted: Sun Oct 02, 2005 8:10 pm
by urban32
Ooo! It really works!!!! :wink: Cool! I find this tool at least two weeks! :)