|
Posted by Raistlin Majere on July 9, 2008, 7:51 am
Please log in for more thread options
If there is anything other than:
- between one hundred and ten thousand a-z chars
- between one hundred and ten thousand A-Z chars or
- between one hundred and ten thousand 0-9 chars or
- between one hundred and ten thousand " " chars or
- between one hundred and ten thousand "," chars or
- between one hundred and ten thousand "." chars or
- between one hundred and ten thousand "!" chars or
- between one hundred and ten thousand "?" chars or
- between one hundred and ten thousand \r\n*
the regex should return an error
*as in "testing\r\ntesting"
*not as in
"testing
testing"
I tested ^[a-zA-Z0-9 ,.!?\r\n]$
i tested ^([a-zA-Z0-9 ,.!?]|\r\n)$
It did not work...
How to make it work???
|