Hi everybody
I have a few HTML files, where I want to change some tags. I thought I can use a small perl program to do this, but I am just a very very beginning perl programmer....
The things I want to do is: replace all occurrences of
<a href="footnote"> into <a href="footnote" name="ref_footnote">, where 'footnote' is some variable one or two-digit number. How would I do this?
I imagine that I would do a substitution line by line, but then what about the cases, where I have '<a' on one line and 'href="footnote">' on the next line?
Thanks a lot.
Ivan,
Iyengar Yoga Resources
http://www.iyengar-yoga.com/
I have a few HTML files, where I want to change some tags. I thought I can use a small perl program to do this, but I am just a very very beginning perl programmer....
The things I want to do is: replace all occurrences of
<a href="footnote"> into <a href="footnote" name="ref_footnote">, where 'footnote' is some variable one or two-digit number. How would I do this?
I imagine that I would do a substitution line by line, but then what about the cases, where I have '<a' on one line and 'href="footnote">' on the next line?
Thanks a lot.
Ivan,
Iyengar Yoga Resources
http://www.iyengar-yoga.com/