Variable rConst

r: RegExpToken = ...

A convenient prefix for all readable RegExp expressions, which can be used to write expressions without needing to import each token individually.

Example

Importing tokens individually

import { oneOrMore, exactly } from 'readable-regexp';

const regExp = oneOrMore(exactly`fo`.maybe`o`);

Example

Importing the r prefix

import { r } from 'readable-regexp';

const regExp = r.oneOrMore(r.exactly`fo`.maybe`o`);

Generated using TypeDoc