![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm looking for a simple regular expression for the Regular Expression validator that would allow any text, spaces and the line breaks and had a minimum and maximum text length. Something like this one: ^([a-zA-z0-9\s]{8,64})$ This one doesn't allow line breaks and allows only alphanumeric characters. For some reason I couldn't find it here: http://regexlib.com I would appreciate your suggestions very much. Thank you, -- Peter Afonin |
#3
| |||
| |||
|
|
(?s)^.{8,64} The "(?s)" indicates that the dot matches newline characters. Therefore, any character qualifies as a match. The only thing limited is the number of characters. -- HTH, Kevin Spencer Microsoft MVP Professional Numbskull This is, by definition, not that. "Peter Afonin" <pafonin (AT) hotmail (DOT) com> wrote in message news:O8XgXVtgGHA.2456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Hello, I'm looking for a simple regular expression for the Regular Expression validator that would allow any text, spaces and the line breaks and had a minimum and maximum text length. Something like this one: ^([a-zA-z0-9\s]{8,64})$ This one doesn't allow line breaks and allows only alphanumeric characters. For some reason I couldn't find it here: http://regexlib.com I would appreciate your suggestions very much. Thank you, -- Peter Afonin |
#4
| |||
| |||
|
|
(?s)^.{8,64} The "(?s)" indicates that the dot matches newline characters. Therefore, any character qualifies as a match. The only thing limited is the number of characters. -- HTH, Kevin Spencer Microsoft MVP Professional Numbskull This is, by definition, not that. "Peter Afonin" <pafonin (AT) hotmail (DOT) com> wrote in message news:O8XgXVtgGHA.2456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Hello, I'm looking for a simple regular expression for the Regular Expression validator that would allow any text, spaces and the line breaks and had a minimum and maximum text length. Something like this one: ^([a-zA-z0-9\s]{8,64})$ This one doesn't allow line breaks and allows only alphanumeric characters. For some reason I couldn't find it here: http://regexlib.com I would appreciate your suggestions very much. Thank you, -- Peter Afonin |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |