I am looking for help on a PERL regular expression that can do the 
following:

1. Make sure that the string is 20 chars or else match should fail.
2. The string can have word characters or spaces or  comma(,), hyphen(-), 
ampersand(&) characters.
3. If the string contains only spaces, then match should fail.

Any ideas on how this can be done using just one regular expression ? 


Thanks.

*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

Reply via email to