This is a discussion on simple regex within the PHP Language forums, part of the PHP Programming Forums category; If there is anything other than: - between one hundred and ten thousand a-z chars - between one hundred and ten ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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]{100,10000}$ i tested ^([a-zA-Z0-9 ,.!?]|\r\n){100,10000}$ It did not work... How to make it work??? |