Hey All, thanks for the replies!
Ahh ha, I thought it had to be something simple that I was missing... Thanks!
gpapkala/choroba,
Thanks guys I thought there was something I was missing there. I did not know that the //g modified affected
the start position when searching. I alwasy just thought that it allowed you to match the pattern any number of times in a file.
I thought that without the //g the pattern would stop after finding the 1st occurence, but it occurs to me now that I'm searching
one line at a time and not over the entire file at once, Duhh... Thanks!
roboticus,
Thanks for the reply. Sorry, guess I didn't mention that ALL the patterns in the regex are Paths/Directories within the
Domain's URLs I'm searching over, so it's not necessarily searching for the file extension, but the Path itself of:
     
--> "http://www.fakesite/jpg/blah-blah-blah"
But I see your point...
AA,
Oh cool, have not used that
use statement before, I'll give it a shot, and thanks for the explanations!
Thanks Again guys for all the replies, very much appreciated!
Thanks Again,
Matt
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.