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

Re^3: dumb regex question

by ikegami (Patriarch)
on Apr 07, 2009 at 01:15 UTC ( [id://755908]=note: print w/replies, xml ) Need Help??


in reply to Re^2: dumb regex question
in thread dumb regex question

if (m{"(/[^"]+)"|(/\S+)}) { my $match = defined $1 ? $1 : $2; ... }
Or whatever's appropriate instead of \S.

Update: Fixed slashes

Replies are listed 'Best First'.
Re^4: dumb regex question
by Nkuvu (Priest) on Apr 07, 2009 at 01:25 UTC

    ...yeah. Or that. Although the regex as given needs a tweak, with embedded slashes in there.

    If it wasn't late in the day on a Monday, I might have come up with a regex that would work. Maybe. But at least the Text::CSV_XS solution is not totally wrong.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found