Step 3: Usage
Treat custom tokens like a built-in token
Custom tokens are integrated as part of readable-regexp. So you can use them just like how you use a built-in token.
Start an expression with a custom token returned by defineToken
Use custom tokens as part of an expression chain
Use custom tokens from the
r
shorthand
Last updated