-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Scott Purcell
Sent: Thursday, March 23, 2006 12:05
To: Perl-Win32-Users@listserv.ActiveState.com
Subject: Reg _expression_ Help

Hello,

 

I have a regular _expression_ in which I am ensuring the user enters some valid characters for our system.

Currently the _expression_ is so:

'^[a-zA-Z0-9-_. ]+$'
 

'^[a-zA-Z0-9-_.\]\[ ]+$'

Wags ;) 
 Meaning, a user can enter a-z or A-Z or 0-9, dashes, underbars or periods and space.

 

I have a problem now, because they actually are going to allow users to enter a ‘[‘ or a ‘]’ This is stumping me. How can I incorporate the possibility of having a [ or ] in the user input?

 

 

Thanks,

Scott

 

 



*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to