We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af0a87 commit eb54e59Copy full SHA for eb54e59
README.md
@@ -406,6 +406,25 @@ This is equivalent to:
406
const coordinates = oneOrMore.digit.exactly`,`.oneOrMore.digit;
407
```
408
409
+`match` can also accept multiple tokens and chain them together, which can be useful for code formatting.
410
+
411
+Example:
412
413
+```js
414
+const filename = match(
415
+ oneOrMore.word,
416
+ exactly`_`,
417
+ oneOrMore.digit,
418
+ exactly`.txt`
419
+);
420
+```
421
422
+This is equivalent to:
423
424
425
+const filename = oneOrMore.word.exactly`_`.oneOrMore.digit.exactly`.txt`;
426
427
428
#### `toString()`
429
430
Get the current expression as a RegExp string. This is a terminal operation, which means no more functions can
0 commit comments