1.0.3 • Published 2 years ago

regex-helper-collection v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Regex Helper Collection

regex-helper-collection is a versatile npm package designed to simplify the usage of various regular expression patterns commonly needed in web development. It provides a comprehensive collection of regex patterns for tasks such as validating passwords, mobile numbers, usernames, and more.

Installation

To integrate regex-helper-collection into your Node.js project, install it via npm:

npm install regex-helper-collection

Usage

const regexHelper = require('regex-helper-collection');

console.log(regexHelper.mobileNumberRegex.test('1234567890')); // true
console.log(regexHelper.emailRegex.test('test@example.com')); // true
... and so on for other regex patterns

Available Regex Patterns

randomPasswordRegex
checkWhiteSpaceRegex
mobileNumberRegex
numberRegex
usernameRegex
passwordRegex
sampleTextRegex
textSpaceRegex
camelCaseSeperatorRegex
camelCaseRegex
alphaNumSpace
alphaNumSpaceDash
alphaSpace
alpha
alphaNum
alphaNumSpecialSpace
alphaNumSpecial1
alphaNumSpecial2
alphaNumSpecial2CAP
alphaNumSpecial3
textFieldRegex
numSpace
num
numFloat
numSpaceDash
startingEndingwhiteSpace
singleWhiteSpace
isfloat
alphaSpecialChar
emailRegex

License

MIT License

Author

Pulkit Gupta (pulkitgupta299@gmail.com)

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago