I have this RegEx that checks input (in javascript) to make sure the user does not enter more than 1000 characters in the text box:
^.{0,1000}$
It works fine if you enter text on one line, but as soon as you press Enter and add a new line, it will stop matching. How do I modify this RegEx to fix this problem?
source
share