Hi Dave--thanks for getting back to me!

I actually got the script off of this site (http://www.perlmonks.org/?node_id=98208)

I am searching for: "img alt="" src=" and would like the script to then return the 10 characters after that.

Below is a sample of the text I am going through. For this example, it will only return the first (<img alt="" src="http://www.xyz/12345.jpg"), and not any other matches. Am I going about this the correct way, or would some sort of wildcard search be easier?

<img alt="" src="http://www.xyz/12345.jpg" original-title="lol&lt;p&gt +;&lt;span class='points-vkL2Q'&gt;497&lt;/span&gt;&nbsp;&lt;span clas +s='points-text-vkL2Q'&gt;points&lt;/span&gt; : 456 : 4 days&lt;/p&gt; +"></a><div class="hover"><div class="arrows"><div title="like" class= +"arrow up " data="vkL2Q" type="image"></div><div title="dislike" clas +s="arrow down " data="vkL2Q" type="image"></div></div></div></div><di +v id="mSHi8" class="post"><a href="/gallery/mSHi8"><img alt="" src="h +ttp://i.xyz.com/mSHi8b.jpg"

In reply to Re^2: Return multiple matches in file by sellwill
in thread Return multiple matches in file by sellwill

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.