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

Re: Grepping out strings

by manigandans (Initiate)
on Feb 02, 2005 at 13:19 UTC ( #427237=note: print w/replies, xml ) Need Help??


in reply to Grepping out strings

Hi Tom,

Assume that $data has the long string you've specified and try out the following regexp:

my @output = ($data =~ /www.\S+\.com/g);

print join ("\n", @output);

Mani

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-11-29 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?