Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GoodRequest/regex-collections

Open more actions menu

Repository files navigation

regex-collections

installation

Run npm i @goodrequest/regex-collections

This package contains these regexes

email

emailRegex

password

To check if string has atleast one lowercase, one uppercase, one number and it is atleast 8 characters long, use passwordRegex
To also check for special character, use passwordWithSpecialCharRegex
If you would like to implement progress bar or tooltip for password, you might want to use these
passwordLengthRegex
passwordHasUpperCaseRegex
passwordHasLowerCaseRegex
passwordHasNumberRegex
passwordHasSpecialCharRegex

social links

socialLinkIGRegex
socialLinkFBRegex

date and time

for format 'YYYY' use yearRegex
for format 'YYYY-MM' yearAndMonthRegex
for format 'YYYY-MM-DD' dateRegex
for format 'HH:mm' timeRegex

utility

These are pretty selfexplanatory

zipCodeSKRegex
isWholeNumberRegex
isDecimalNumberRegex

About

collection of all regex used in GR

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.