1.0.12 • Published 5 years ago

regexpkg v1.0.12

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

RegexPKG

version downloads

RegexPKG is a node module that provides helpful regexes for your package.

Using RegexPKG

To get started, download RegexPKG.

npm install regexpkg

Next, you can start using the API.

const regexpkg = require('regexpkg')

console.log(regexpkg.getAllRegexes()) // logs all the regexes in the library

console.log(regexpkg.test('String', '"Hello, World!"')) // returns true or false wether the regex matching the name matches the string.

console.log(regexpkg.Regex[<name>]) // Get a regex by name

console.log(regexpkg.Regex.<name>)  // Get a regex by name

List of Regexes(As of v1.0.12)

  • Number

    Matches a number/multiple numbers.

  • String

    Matches anything in between quotes.

  • Symbol

    Matches any symbol

  • Email

    Matches an email

  • Text

    Matches a line of text

  • IPV4

    Matches an IPV4 ip.

  • IPV6

    Matches an IPV6 ip.

  • PhoneNumber

    Matches a phone number

  • Password

    Matches a password with at least one lowercase letter, at least 1 uppercase letter, at least 1 number, at least 1 symbol, and that is 8 characters long.

  • JavascriptKeyword

    Matches any javascript keyword.

  • HtmlTag

    Matches an HTML tag.

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.1.1

5 years ago

1.0.0

5 years ago