Letters, numbers and blank space

Published on Tue Mar 01 2022

The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.

Additional matching regexes for
Letters, numbers and blank space

Letters, numbers and blank space

The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.

Person NAME verification

Regular Expression ``` ^[a-zA-Z ]{2,30}$ ``` - Allow only letters and space between each characters to support for multi word single name. Only accepts english letter characters.

Simple ID verification

Used to validate documents identifiers like passports and IDs, VISA numbers. - Default to `6` characters *min* and *max* `30` characters for format `tin-no`, such as the Tax regisration number.- Regular Expression ```js ^[a-zA-Z0-9 ]{6,30}$ ``` - Accepts both lowercase and uppercase letters, from a-z, digit, and white space. - NOTE: Double white space between characters not validated.

Strict Password Validator

**This regex matches only when all the following are true:** password must contain 1 number (0-9) password must contain 1 uppercase letters password must contain 1 lowercase letters password must contain 1 non-alpha numeric number password is 8-16 characters with no space

Inverse Match

inverse match letters, numbers, and underscores

C++ operator overload

"Lazy" operator overload regular expression: += and likes are left out because + and like matches anyway.

Simple person name verification

Regular Expression `^[a-zA-Z ]{2,50}$` - Allow only letters a-z and space between each character to support multi-word single names. - Prone to errors in repeated spaces, to be cleanup by the app. Minimum 2 characters and max 50.

Alphanumeric only

Allows only Uppercase, lowercase letters and numbers

shortcode wordpress

Wordpress shortcode regular expression

Validate Base64 with new lines (e.g. GPG base64 messages)

This regular expression validates if given string is formatted in Base64, additional it accepts new lines, since payload can have new lines in it.