Easily compose regular expressions without the need for double-escaping inside strings.
Converts the code to TypeScript, and restructures the exports:
import {r} from 'regexr'
instead of import r from 'regexr'
.r
function, but as exported separately. For example use import {escape} from 'regexr'; escape(...)
instead of import r from 'regexr'; r.escape(...)
, and import {identifier} from 'regexr/regexes'; identifier
instead of import r from 'regexr'; r.identifier
e
alias added for escape
: import {e} from 'regexr'; e(someString)
First stable release from a long time ago.