extra-regexp

A regular expression defines a pattern for matching text.

Usage no npm install needed!

<script type="module">
  import extraRegexp from 'https://cdn.skypack.dev/extra-regexp';
</script>

README

A regular expression defines a pattern for matching text.

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.

nodef