Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-09-28 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?