Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18020
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | ScreenName validation |
| Date | 2013-01-08 10:44 -0700 |
| Message-ID | <al347sFepchU1@mid.individual.net> (permalink) |
Hi:
On a new site I'm building, I require the client (U.S., or Canadian) to
enter his chosen 'Screen Name'.
I wish to allow >= 2 and <= 12 characters to be input.
I want only lowercase alpha chars along with a dot ( . ), dash( - ), and
underscore( _ ) to be allowed. But no whitespace should be allowed.
At the server, I will add a 4-digit value to the chosen screenname,
giving the screen name some uniquity, and return the corrected screen name
to the client.
If the user leaves the screenname field blank, I will create a
screenname from the given and surnames (which are mandatory input fields).
These names will be checked against a national Names database for
verification.
The final screen name will be something like:
mel_s1234 // for a blank input
or
snow.bird1234 // where the user has entered " SNOW Bird"
Will someone suggest a Regex function for this input field.
Thanks,
--
Mel Smith
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
ScreenName validation "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-08 10:44 -0700
Re: ScreenName validation Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-08 11:02 -0800
Re: ScreenName validation "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-08 13:05 -0700
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 01:28 +0100
Re: ScreenName validation Jeff North <jnorthau@yahoo.com.au> - 2013-01-11 12:23 +1100
Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-11 03:38 +0100
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 20:35 +0100
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 21:22 +0100
Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-11 22:09 +0100
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 23:23 +0100
Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-12 00:26 +0100
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 00:54 +0100
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 00:22 +0100
Re: ScreenName validation Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-11 13:29 -0800
Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 02:31 +0100
csiph-web