Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Regex validator question

Reply
Thread Tools

Regex validator question

 
 
Stephan Bour
Guest
Posts: n/a
 
      10-28-2003
Iım trying to validate a field that can have up to 150 word characters but
any number of white space, carriage returns or tabs.
This doesnıt work properly:
ValidationExpression="^[\w]{1,150}[\n\s]{0,}"

I get a validation error if any non-word character is added, regardless of
the total length of the string.
Thanks for your help,
Stephan.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How make regex that means "contains regex#1 but NOT regex#2" ?? seberino@spawar.navy.mil Python 3 07-01-2008 03:06 PM
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
Is ASP Validator Regex Engine Same As VS2003 Find Regex Engine? =?Utf-8?B?SmViQnVzaGVsbA==?= ASP .Net 2 10-22-2005 02:43 PM
Is Validator Regex Same as VS 2003? =?Utf-8?B?SmViQnVzaGVsbA==?= ASP .Net 2 10-22-2005 10:27 AM
help - regex validator expression not weeding out commas Mad Scientist Jr ASP .Net 3 06-21-2004 07:37 AM



Advertisments