Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18020
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
| Newsgroups | comp.lang.javascript |
| Subject | ScreenName validation |
| Date | Tue, 8 Jan 2013 10:44:26 -0700 |
| Lines | 35 |
| Message-ID | <al347sFepchU1@mid.individual.net> (permalink) |
| X-Trace | individual.net ef2G6AsLE8W3FGTCDAR3kgOnIU118GGCSMh88xLNjquTBY+v8y1QvyF3oTsrPyXr2x |
| Cancel-Lock | sha1:M+SmXkWaxLWLVRalLbbfyVA9eEU= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5931 |
| X-RFC2646 | Format=Flowed; Original |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| Xref | csiph.com comp.lang.javascript:18020 |
Show key headers only | View raw
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