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

Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO
- USA Central Time Zone
636-755-2652 fax 636-755-2503

[EMAIL PROTECTED]
www.nisc.coop 

 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Scott Purcell
        Sent: Thursday, March 23, 2006 14: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-_. ]+$'

        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

         

         


_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to