Skip to content

yury-dymov/js-regex-pl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-regex-pl

JavaScript RegExp doesn't work with Unicode characters out of the box. This small package fixes this issue.

This is \p{L} equalent extracted from XRegExp

XRegExp is a great library but I wanted something much smaller for my needs.

Installation

npm i js-regex-pl

Usage

import pL from 'js-regex-pl';

new RegExp(`^[${pL}]+$`).test('日本語')

About

Providing \p{L} regex pattern for JavaScript RegExp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published