SyntaxFix
Write A Post
Hire A Developer
Questions
Like this: .
.
The . means any character except newline (which sometimes is but often isn't included, check your regex flavour).
You can rewrite your expression as ^.{1,35}$, which should match any line of length 1-35.
^.{1,35}$