I am wring a perl script that loads an entire HTML document into an array as lines. What I want to do is search through each line of the array for "img src=" tags and pull the image URL out. I then want to insert a NEW image URL in its place. There MAY be multiple "img src" tags per line.
I was thinking of using INDEX to find the beginning of the img src tag, but then how do I find the end? There MUST be a better way then using INDEX.. Anyone?
Thanks.
In reply to Extract and modify IMG SRC tags in an HTML document. by jmpvm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |