Hi,
I'm trying to use a regular expression validator, but I'm having a problem with my expression.
I have a multi-line textbox which should contain at least 10 but no more than 255 characters.
The expression I have is ^\w{10,255}
The error message is set to 'Content must be between 10 and 255 characters. Please edit'
The validator shows the message if I type more that 255 or less than 10. Great... but it will not show if I don't enter anything in the box. What do I need to change to the regex... or do I need an extra separate validator (RequiredFieldValidator)
I've not failed! Just found 100 ways that don't work...yet!
I'm trying to use a regular expression validator, but I'm having a problem with my expression.
I have a multi-line textbox which should contain at least 10 but no more than 255 characters.
The expression I have is ^\w{10,255}
The error message is set to 'Content must be between 10 and 255 characters. Please edit'
The validator shows the message if I type more that 255 or less than 10. Great... but it will not show if I don't enter anything in the box. What do I need to change to the regex... or do I need an extra separate validator (RequiredFieldValidator)
I've not failed! Just found 100 ways that don't work...yet!