Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: dumb regex question

by ikegami (Patriarch)
on Apr 07, 2009 at 01:15 UTC ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2022-01-20 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?