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

Re: Regular expression for a comma separated string

by wjw (Priest)
on Nov 23, 2014 at 23:45 UTC ( #1108198=note: print w/replies, xml ) Need Help??

in reply to Regular expression for a comma separated string

What I generally do with such problems is break them into individual requirements in my code, then later attempt to put it all in one statement if possible/desired(I usually don't desire it).

So it becomes a check and pass unless fail sequence of statements in my code. It is a lot easier for me to trouble-shoot that way. Those who are great at RegEx's may snicker at this approach, but hey, it works and I find it a lot less frustrating..

Hope that is helpful...

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact

  • Comment on Re: Regular expression for a comma separated string

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2023-10-04 05:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found