Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Help on parsing an array

by Wonko the sane (Deacon)
on May 13, 2003 at 13:42 UTC ( #257726=note: print w/ replies, xml ) Need Help??


in reply to Help on parsing an array

There are at least 101 ways to do this. Here is one of them.
my @urls = map { /href=([^\n\r]+)/ } @strings;

I would wonder if at a higher level your task may be better suited for one of the HTML Parser modules though.:-)

Wonko.

Replies are listed 'Best First'.
Re: Re: Help on parsing an array
by Anonymous Monk on May 13, 2003 at 13:58 UTC
    i used they way u showed me to , is there a way to get rid of the "" that would be really wonderful here is the output as i am getting it "/forwardBookmark.jsp" "/search/searchhelp.jsp" thanks again for ur help
Re: Re: Help on parsing an array
by Anonymous Monk on May 13, 2003 at 14:01 UTC
    got the quotes i was just playing with it and figured it out thank you very much for ur help

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-06-28 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (364 votes). Check out past polls.