Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by vitoco (Friar)
on Nov 18, 2009 at 02:42 UTC ( #807852=note: print w/replies, xml ) Need Help??


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

You can try \b word boundary pattern:

print "found\n" if $list =~ m/\bvalue1\b/;

... or use Regexp::Keywords ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://807852]
help
Chatterbox?
[Discipulus]: karl: configuring the network is like: nmcli conn add con-name "name name" ifname eth0 type eterneth.... not so different from powersehell longness
[Corion]: marto: I'm idly considering buying a new phone, as my current phone has a faulty USB port and doesn't always recharge well. But I'm not sure whether I should buy a phone with Oreo, or wait for a stable Oreo, or just wait another year :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-12-14 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (389 votes). Check out past polls.

    Notices?