Regular Expressions

Some of the useful and common Regex patterns

//match a proper username; can contain letter, number, underscore, or hyphen and between 3-16 characters

//match an email

//match a URL
/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

//match an IP address

//match an HTML tag

//match a complex password; Only accept a string with 1 uppercase alphabet, 1 lowercase alphabet, 2

//match emojis

//match ascii characters