Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: check if string is valid with special cases (updated)

by haukex (Chancellor)
on May 15, 2018 at 10:22 UTC ( #1214536=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    die "invalid format: $string"
        unless $string=~/\A[^,]+(?:,[^,]+){5}\z/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2019-12-13 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?