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

Re: Regex Conundrum

by snax (Hermit)
on Jun 12, 2004 at 18:48 UTC ( [id://363641]=note: print w/replies, xml ) Need Help??


in reply to Regex Conundrum

You're not terribly clear in your goals but if you just want the pieces in an array, use
my $data = q("one"," one,two",3,"a like <A HREF="foo"> b</A>"); my @pieces = split(q(,), $data);
This assumes that you have a comma-delimited set of data, which appears to be true from your sample.
Update:
I need to be more careful, don't I? Sorry that I didn't see the embedded comma. As a result, my suggestion is worthless.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found