left-arrow-icon
name-regex-icon

Name Regex

Create a Rules based Regular Expression for Name Validation (Login name, User name, First name, Last name, Domain name, Company Name)

Home

Developer Tools

Name Regex Generator and Validator


Generate Regular expression for name based on rules. OR Enter your regular expression and use validator below to verify different name inputs

Regex Pattern

   
copy icon     Copy

Min Length

 

Max Length

 

Allowed Chars


Case Selection



You can enter different name to validate for above generated Regular expression. You can also copy other name regex patterns in Regex field and validate it here

Enter name to verify

      

Name Regular Expression Reference Table

Conversion Table icon

Input

Expression

Example

Default Name format-First letter of first name is capitalized,allow unicode charaters

^[A-ZÀ-ÿЁёА-я][a-zA-ZÀ-ÿЁёА-я]{8,24}$

Andrew Ádomá

Allow Alphabets any case

^[a-zA-ZÀ-ÿ]

andrew Jhon

Allow Numbers

^^[A-Z][a-z0-9]

AndrewJhon09

Allow Only UpperCase

^[A-Z]

JHON

Allow Only LowerCase

^[a-z]

jhon

Allow Dot

^[A-Z][a-z.]$

Andrew.jhon

Allow Hyphen

^[A-Z][a-z-]$

Andrew-jhon

Allow Apostrophe

^[A-Z][a-z’]$

Andrew d'jhon

Allow Comma

^[A-Z][a-z,]$

Andrew,jhon

Allow Space

^[A-Z][a-z ]$

Andrew jhon

Minimum Length check

^[A-Z][a-z]{6,}$

Andrew

Maximum Length check

^[A-Z][a-z]{8,24}$

Martin Luther King Jr

Allow Unicode Characters

^[A-ZÀ-ÿÀ-ÿЁёА-я][a-zA-ZÀ-ÿÀ-ÿЁёА-я-'. ,]{8,24}$

Артём Ádomá

Allow first letter of each name in capitalized

^(?:[A-Z][^\s]*\s?)+$

Andrew Jhon

Frequently Asked Questions on Name Regex Generator

FAQ icon

  • Regex stands for Regular Expression and it's a pattern of characters in a specific format that can act as a rule and can be used to check adherence or match of an input text to the rules. A name regex is a pattern for matching names. Example of a name regular expression is ^[A-ZÀ-ÿÀ-ÿЁёА-я][a-zA-ZÀ-ÿÀ-ÿЁёА-я-'. ,] This input matches any name / text which is having Alphabets with space without digit,Starting letter in capital,Allows Unicode characters.

  • This regex patterns finds the match for name with Alphabets with space without digit,Starting letter in capital,Allows Unicode characters. ^[A-ZÀ-ÿÀ-ÿЁёА-я][a-zA-ZÀ-ÿÀ-ÿЁёА-я]$

  • The min and max length for name are set using regex ^[A-ZÀ-ÿЁёА-я][a-zA-ZÀ-ÿЁёА-я ]{8,256}$ This regex pattern finds the match for such names and mandates min length as 8 and max as 256.

  • The regular expression engine provides support for Unicode characters Unicode support that can be offered by regular expression engines Level 1: Basic Unicode Support. At this level, the regular expression engine provides support for Unicode characters as basic logical units. This is independent of the actual serialization of Unicode as UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, or UTF-32LE. This is a minimal level for useful Unicode support. Level 2: Extended Unicode Support. At this level, the regular expression engine also accounts for extended grapheme clusters , better detection of word boundaries, and canonical equivalence.

  • ^[A-ZÀ-ÿЁёА-я][a-zA-ZÀ-ÿЁёА-я]{8,256}$. This regex pattern finds the match for such names with unicode character. ^[\p{L} ]*.{8,256}$. This regex pattern matches any kind of letters/unicode from any language.

  • To match a special character, precede it with a backslash, like this \*. Example \. matches "."; regex \+ matches "+"; and regex \( matches "(". Need to use regex \\ to match "\" (back-slash).