I am trying to create a validation expression that checks the length of an input and allows the use of text and punctuation characters (for example,?;:! "£ $%)
What I have come up with so far is this "^\s*(\w\s*){1,2046}\s*$", but it will not give any punctuation. Honestly, I'm pretty sketchy in this area, so any help would be greatly appreciated!
"^\s*(\w\s*){1,2046}\s*$"
Thanks,
Steve
^[\w\s.,:;!?€¥£¢$-]{0,2048}$
^ - /[] -\w -\s - .,:;!?€¥£¢$- -{} - (, )$ - /
^
[]
\w
\s
.,:;!?€¥£¢$-
{}
$
:
^\s*([\w,\?;:!"£$%]\s*){1,2046}$
, , .
, , :
^(?=.{1,2046}$)\s*([\w,\?;:!"£$%]\s*)+$
( , . + {1,}, .)
+
{1,}
, ? ? \ D ,
, , : , . script.
, - . SQL-.
^\s*([\w\s\?\;\:\!\"£\$%]{1,2046})\s*$
Source: https://habr.com/ru/post/1725815/More articles:How does the manifest file work in .NET applications? - .netHow to add popup menu in JTextField - javaJNI Java in C ++ - javaMySQL selects multiple values from a column - mysqlZend Framework 1.8+: how to automatically install the application environment? - zend-frameworkWhat are initialized by Java object fields? - javaPHP installation script - phpgenerate text sequence in powershell - powershellIs there a way to test layout with RC Selenium - layoutReplacement for a vector that accepts non-standard constructive and non-assignable types - c ++All Articles