Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: reg exp to find presence of value in a list of comma seperated list

by Anonymous Monk
on Nov 18, 2009 at 14:40 UTC ( [id://807922]=note: print w/replies, xml ) Need Help??


in reply to reg exp to find presence of value in a list of comma seperated list

Depending on the OP's needs, Perl's grep function might be useful.

http://perldoc.perl.org/functions/grep.html

Just search the list returned by grep to see if it's empty or not.

  • Comment on Re: reg exp to find presence of value in a list of comma seperated list

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found