Find a line in an html file

S

starfrit

I'm trying to addapt a perl script with another version of my hockey
simulator, because the file name structure as changed. It is an IF
that looks for a link into an html file

Before, the link was
<A HREF=AHSQ79.html> and the perl line was if (m/^<A
HREF.(\w*.\w+)>.(\d+).*/)

Now, the link is <a href="AHSQ2006-79.html">

Thanks for any help
 
X

Xicheng Jia

I'm trying to addapt a perl script with another version of my hockey
simulator, because the file name structure as changed. It is an IF
that looks for a link into an html file

Before, the link was
<A HREF=AHSQ79.html> and the perl line was if (m/^<A
HREF.(\w*.\w+)>.(\d+).*/)

Now, the link is <a href="AHSQ2006-79.html">

Thanks for any help

if (/^<a href="([^"]*)">.(\d+)/i) { ... }

Xicheng
 
S

starfrit

Xicheng said:
I'm trying to addapt a perl script with another version of my hockey
simulator, because the file name structure as changed. It is an IF
that looks for a link into an html file

Before, the link was
<A HREF=AHSQ79.html> and the perl line was if (m/^<A
HREF.(\w*.\w+)>.(\d+).*/)

Now, the link is <a href="AHSQ2006-79.html">

Thanks for any help

if (/^<a href="([^"]*)">.(\d+)/i) { ... }

Xicheng

It works, thanks
 
T

Tad McClellan

I'm trying to addapt a perl script


You forgot to post the adaptations that you have tried.

If you show us your broken attempt, we can probably help you fix it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top