I am trying to write a regular expression that will be used on a text box to validate its contents to see if it is between 1 and 35. The characters within the text box can be an
It's usually the metacharacter . when not inside a character class.
.
So use ^.{1,35}$. However, dot does not include newlines unless the dot-all modifier is applied against it.
^.{1,35}$
You can use ^[\S\s]{1,35}$ without any modifiers, and this includes newlines as well.
^[\S\s]{1,35}$