Character Classes
The following regular expression characters find a match if any one of the characters included in the set matches the criteria you define.
Regular Expression | Description |
---|---|
. |
Any character except \n. |
[aeiou] | Any single character included in the specified set of characters. For example, the expression [abc123] only allows oneof the following characters: "a," "b," "c," "1," "2," or "3." |
[^aeiou] | Any single character not in the specified set of characters. For example, the expression [^abc123] allows any character except for: "a," "b," "c," "1," "2," or "3." |
[0-9a-fA-F] | Use of a hyphen ( – ) allows specifying a contiguous character range. For example, the expression [0-9] allows only any number that falls between 0 and 9 and [A-Z] allows any capital letter. |
\p{name} | Any character in the named character class specified by {name}. Supported names are Unicode groups and block ranges. For example, Ll, Nd, Z, IsGreek, and IsBoxDrawing. Learn more. * |
\P{name} | Text not included in groups and block ranges specified in {name}. Learn more. * |
\w |
|
\W | Any nonword character. Equivalent to the Unicode categories [^\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]. If you are defining a regular expression in the Laserfiche Administration Console, \W is equivalent to [^a-zA-Z_0-9]. |
\s | Any white-space character. Equivalent to the Unicode character categories [\f\n\r\t\v\x85\p{Z}]. If you are defining a regular expression in the Laserfiche Administration Console, \s is equivalent to [ \f\n\r\t\v]. |
\S | Any non-white-space character. Equivalent to the Unicode character categories [^\f\n\r\t\v\x85\p{Z}]. If you are defining a regular expression in the Laserfiche Administration Console, \S is equivalent to [^ \f\n\r\t\v]. |
\d | Any decimal digit. Equivalent to \p{Nd} for Unicode. If you are defining a regular expression in the Laserfiche Administration Console, \d is equivalent to [0-9]. |
\D | Any nondigit. Equivalent to \P{Nd} for Unicode. If you are defining a regular expression in the Laserfiche Administration Console, \D is equivalent to [^0-9]. |
*These regular expressions are not available when configuring field constraints in the Laserfiche Administration Console.
Regular Expression | Description |
---|---|
[[:alnum:]] | Any alphanumeric character. |
[[:alpha:]] | Any alphabetical character in the following ranges: a-z and A-Z. |
[[:blank:]] | A space or a tab. |
[[:digit:]] | Any whole number from 0 to 9. |
[[:lower:]] | Any lower-case character (i.e., a-z). |
[[:print:]] | Any printable character. |
[[:punct:]] | Any punctuation character. |
[[:space:]] | Any whitespace character. |
[[:upper:]] | Any upper-case character (i.e., A-Z). |
[[:xdigit:]] | Any hexadecimal digit (i.e., 0-9, a-f and A-F). |
[[:word:]] | Any alphanumeric character or an underscore. |