Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex Conundrum

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.