Re: Regular expression for word counting
- From: Jesse Houwing <jesse.houwing@xxxxxxxxxxxxxxxx>
- Date: Sun, 15 Jul 2007 16:58:28 +0200
* drasko wrote, On 14-7-2007 22:19:
Doesn't work... :(
The regex I sent does not allow for multiple whitespace characters right after eachother.
Altering it to:
^(\S+\s+){0,49}\S+$
should work, but that counts up to 49 gaps, not up to 49 exact whitespace characters.
If you want to be more exact I suggest you sue a custom validator and write the javascript and server side logic yourself using the normal String functions.
Jesse
.
- References:
- Regular expression for word counting
- From: drasko
- Re: Regular expression for word counting
- From: Jesse Houwing
- Re: Regular expression for word counting
- From: drasko
- Regular expression for word counting
- Prev by Date: Re: Disable View Source Button?
- Next by Date: Re: Secure an ASPX page
- Previous by thread: Re: Regular expression for word counting
- Next by thread: Re: Regular expression for word counting
- Index(es):