Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: newbie to regex: all matches

by sulfericacid (Deacon)
on Mar 10, 2006 at 01:00 UTC ( [id://535580]=note: print w/replies, xml ) Need Help??


in reply to Re: newbie to regex: all matches
in thread newbie to regex: all matches

Be sure to \? before your ? as that's a special character.

UPDATE adding code

my @matches = ($content =~ m/(image.php\?id=\d+)/g);

UPDATE 2 Fixed typo of /? to \? thanks to GrandFather



"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://535580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found