Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Validate fields

Quote Reply
Re: Validate fields In reply to
I could be too tired, but:

Code:
^[a-zA-z0-9]+$

The above makes sure you have at least one character, if you want to allow an empty set, you could use a '*' instead of the '+'

You couldn't use the \w because that would allow a '_' which wasn't in your selection set.

But if a '_' was leagal (as it is in Perl)

Code:
^\w+$

should do the same thing.
Subject Author Views Date
Thread Validate fields Robert 3750 Jan 15, 2000, 4:28 AM
Post Re: Validate fields
pugdog 3609 Jan 15, 2000, 4:43 AM
Post Re: Validate fields
widgetz 3608 Jan 15, 2000, 1:09 PM
Post Re: Validate fields
pugdog 3606 Jan 15, 2000, 1:44 PM
Post Re: Validate fields
Robert 3605 Jan 16, 2000, 5:14 AM
Post Re: Validate fields
pugdog 3604 Jan 16, 2000, 5:58 AM
Post Re: Validate fields
Robert 3606 Jan 16, 2000, 7:57 AM
Post Re: Validate fields
Alex404 3599 Jan 16, 2000, 8:47 AM
Post Re: Validate fields
Robert 3610 Jan 16, 2000, 11:36 AM
Post Re: Validate fields
pugdog 3603 Jan 16, 2000, 5:55 PM
Post Re: Validate fields
Alex 3606 Jan 17, 2000, 8:37 AM