@agzgt2/regexp-match
v1.0.0
Published
matching regexpes with strings
Downloads
91
Readme
regexp-match
Not only checks if a string matches a RegExp pattern
INSTALL
npm i regexp-match
# or...
pnpm i regexp-matchUSE
These are the functions that are included:
doesMatch(string, RegExp)
doesMatch("hi", /[a-z]+/) // true
doesMatch("hello!", /[a-z]+/) // falseisRegExp(any)
isRegExp(/z{3}/) // true
isRegExp(123456) // false