Regex validator question

Discussion in 'ASP .Net' started by Stephan Bour, Oct 28, 2003.

  1. Stephan Bour

    Stephan Bour Guest

    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.
     
    Stephan Bour, Oct 28, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mad Scientist Jr
    Replies:
    3
    Views:
    793
    bloomfield
    Jun 21, 2004
  2. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Is Validator Regex Same as VS 2003?

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Oct 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    777
    =?Utf-8?B?SmViQnVzaGVsbA==?=
    Oct 22, 2005
  3. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Is ASP Validator Regex Engine Same As VS2003 Find Regex Engine?

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Oct 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    724
    =?Utf-8?B?SmViQnVzaGVsbA==?=
    Oct 22, 2005
  4. Replies:
    4
    Views:
    915
    Richter~9.6
    Feb 13, 2007
  5. Replies:
    3
    Views:
    795
    Reedick, Andrew
    Jul 1, 2008
Loading...

Share This Page