New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

regexpool

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexpool

A library of frequently used regex samples

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
1
-90%
Maintainers
1
Weekly downloads
 
Created
Source

regexPool

A library of frequently used regex samples.

Installation

npm i regexpool

Usage

It is implemented from within the regexPool file. For example:

import { forExample } from 'regexpool'

You must send parameters to the function you called last. The value true / false will return you:

const regexPoolVariable = forExample('parameter');

Regex Properties

NameUsed TypeReturn Options
isEmailisEmail('example@domain.com')true, false
onlyLettersonlyLetters('example')true, false
onlyNumbersonlyNumbers('123')true, false

License

MIT

Changelog

v1.0.0

Initial commit and Adding isEmail control

v1.1.0

Adding onlyLetters control

v1.2.0

Adding onlyNumbers control

Keywords

javascript regex

FAQs

Package last updated on 25 May 2020

Related posts