https://github.com/nodef/extra-regexp
A regular expression defines a pattern for matching text.
https://github.com/nodef/extra-regexp
extra regexp
Last synced: 4 months ago
JSON representation
A regular expression defines a pattern for matching text.
- Host: GitHub
- URL: https://github.com/nodef/extra-regexp
- Owner: nodef
- License: mit
- Created: 2018-06-09T14:44:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T17:10:28.000Z (about 1 year ago)
- Last Synced: 2025-10-18T07:05:02.495Z (8 months ago)
- Topics: extra, regexp
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/extra-regexp
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A [regular expression] defines a pattern for matching text.
```javascript
require('extra-regexp');
// : extends global RegExp
// RegExp.escape(string)
// RegExp.unescape(string)
// ...
```
Methods:
| Name | Action
|---------------------|-------
| [escape] | Escapes string for use in RegExp.
| [unescape] | Unescapes RegExp string for readability.
[](https://nodef.github.io)

[regular expression]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp