in reply to If I'm matching a pattern wy does a + sign make things crazy?
($mres) = ($res =~ m/(<a href=\"https:\/\/www.example.com\/foodbanks\/.*<\/a>)/im);
Also WRT regexes: In the code above quoted from the OP, note that the . (dot) operators in www.example.com will match anything (except newlines (unless the /s modifier is asserted)), so e.g.,
The dot (and any other regex metacharacters that may be present) should be escaped appropriately.c:\@Work\Perl\monks>perl -wMstrict -le "print 'match' if 'wwwXexampleYcom' =~ /www.example.com/; " match
Give a man a fish: <%-{-{-{-<
|
|---|