Link to home
Start Free TrialLog in
Avatar of Thomas
ThomasFlag for Malaysia

asked on

EmEditor regular expression

Hi,
I have 2000 small HTML files and I want to replace something, or actuallr remove something.
I found EmEditor which I like a lot. It has some regular expression search. But I cant figure out how to solve my challange.

I have a piece of html code:
<a style="font-family:Arial; font-size:12px; " href="photo_send.php?id=???">Request high resolution photo</a><br>

very simple, I want to remove this line. However where you see ??? there are numbers in there from 1 to 2000. So I try to find a way to tell the find/replace to ignore on the find what is between the id= and the "

Any ideas on how to accomplish this?

Thank you for any tip.

Thom
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this

(\<a style)(.)*(Request high resolution photo\<\/a\>\<br\>)

Open in new window

Avatar of Thomas

ASKER

Hi,

@Bill: This worked like a charm and saved me a lot of work. Thank you very much for helping me on this. It makes sense now after I seeing the syntax.

@HainKurt: Thank you very much for this, but it did not work. I did a try run and it found nothing. The other from Bill found them all.

Best wishes,
Thom