Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: RegEx question

by japhy (Canon)
on Sep 21, 2010 at 19:29 UTC ( [id://861147] : note . print w/replies, xml ) Need Help??


in reply to RegEx question

Never one to pass up a challenge...
/^[^,]*(?:,\s*[^\s,][^,]*)*$/

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
Nos autem praedicamus Christum crucifixum (1 Cor. 1:23) - The Cross Reference (My Blog)