Please Help.

General discussions about Advanced Find and Replace
Post Reply
nemo13
Posts: 2
Joined: Sun Mar 13, 2005 6:48 pm

Please Help.

Post by nemo13 »

Code: Select all

<td width="260" height="490" align="center" valign="top" bgcolor="#A0B4C7">
   <font color="#000080" style="font-size: 20px;" style="font-weight: 900;" >More Posters:</font><br><br>
   <a href="http://www.netposters.net"><font color="#393BFF">PostersNET-Over 1,730,000 Posters</font></a><br><br>
   <a href="http://www.usposters.org"><font color="#393BFF">US Posters</font></a><br><br>
   <a href="http://www.hitposters.net"><font color="#393BFF">Newest Posters Portal</font></a><br><br>
      <a href="http://www.vintage-movie.hitposters.net"><font color="#393BFF">Vintage Movie</font></a><br><br>
   <a href="http://www.harley-davidson.usposters.org"><font color="#393BFF">Harley Davidson</font></a><br><br>
   <a href="http://www.motivational-posters.netposters.net"><font color="#393BFF">Motivational Posters</font></a><br><br>
   <a href="http://www.motorcycle-posters.hitposters.net"><font color="#393BFF">Motorcycle Posters</font></a><br><br>
   <a href="http://www.inspirational.usposters.org"><font color="#393BFF">Inspirational</font></a><br><br>
   <a href="http://www.vintage-posters.netposters.net"><font color="#393BFF">Vintage Posters</a></font><br><br>
   <a href="http://www.space-posters.hitposters.net"><font color="#393BFF">Space Posters</font></a><br><br>
   <a href="http://www.animal-posters.hitposters.net"><font color="#393BFF">Animal Posters</font></a><br><br>
   <a href="http://www.nature-posters.usposters.org"><font color="#393BFF">Nature Posters</font></a><br><br>
   <a href="http://www.animal-posters.netposters.net/fr/1.htm"><font color="#393BFF">Posters</font></a><br>
<a href="http://www.animal-posters.netposters.net/fr0/1.htm"><font color="#393BFF">Prints</font></a><br><br><br>
   <p align="center">
   <a href="http://www.animal-posters.netposters.net/resources/">
   <img border="0" id="img7" src="\images/button32.gif" height="20" width="100" alt="Resources" onmouseover="FP_swapImg(1,0,/*id*/'img7','\/images/button30.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img7','\/images/button32.gif')"


this is source, how can i get next source by useing -->>>> this (.*)
regular expre.......


Code: Select all

[code]<td width="260" height="490" align="center" valign="top" bgcolor="#A0B4C7">
   <font color="#000080" style="font-size: 20px;" style="font-weight: 900;" >More Posters:</font><br><br>
   
TEST TEST TEST TEST


   <a href="http://www.animal-posters.netposters.net/resources/">
   <img border="0" id="img7" src="\images/button32.gif" height="20" width="100" alt="Resources" onmouseover="FP_swapImg(1,0,/*id*/'img7','\/images/button30.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img7','\/images/button32.gif')"[/code]

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

Post by Abacre »

As far as I understood you want to insert some text between fixed
text.

For this purpose you have two choices:

1. Use Replace operation with "Replace between" action type.
For in search for you put:
More Posters:</font><br><br>

and into "Ending with" you put:

<a href="http://www.animal-posters.netposters.net/resources/">

Then you may specify "Replace" text:
TEST TEST TEST TEST

2. Second variant:
use Batch replace with "Use regular expressions" ON.

Put search for:

Code: Select all

More Posters:</font><br><br>.*<a href="http://www.animal-posters.netposters.net/resources/">


Replace with:

Code: Select all

More Posters:</font><br><br>\r\n\r\nTEST TEST TEST TEST\r\n\r\n<a href="http://www.animal-posters.netposters.net/resources/">



Attention: Modifier S should be ON.

I verified it perfectly works.[/code]
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

nemo13
Posts: 2
Joined: Sun Mar 13, 2005 6:48 pm

Post by nemo13 »

Why i must use this????

Code: Select all

\r\n\r\n
????

What does it mean?

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

Post by Abacre »

In regular expressions \r\n means new line.
Read more:
http://www.abacre.com/afr/manual/regexpsyntax.htm
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply