@goodrequest/regex-collections
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @goodrequest/regex-collections

Weekly Downloads

4

Version

0.0.5

License

none

Unpacked Size

18.7 kB

Total Files

19

Last publish

Collaborators

  • logingoodrequest
  • lubomirigonda