string name validation #name validation #regex #

 Full name String values

export const fullNameString = val => {
    const regex = /^[a-zA-Z]+ [a-zA-Z]+$/;
    return regex.test(val);
}

Comments

Popular posts from this blog

Image Preview Before upload image into ReactJs

Format mobile number to this format "(845) 963-2545" #mobileFormat