Don't ask to ask, just ask | |
PerlMonks |
Re: reg exp to find presence of value in a list of comma seperated listby sherab (Scribe) |
on Nov 17, 2009 at 21:16 UTC ( [id://807804]=note: print w/replies, xml ) | Need Help?? |
If you're on perl 5.10 and greater, you could put it into an array and then check using perl smart operator.A good example of how to use this is here. It's not using a regexp but it might be helpful if you are trying to see if "x" value is in an array of values.
In Section
Seekers of Perl Wisdom
|
|