wiki/content/20201104102212-javascript_regexp_match_method.md

12 lines
260 B
Markdown

---
date: 20201104
id: dc5b49fe-a371-459a-b82b-174301aee41d
title: JavaScript RegExp Match Method
---
\`match\` is similar to
[exec](20201104101924-javascript_regexp_exec_method), but in flip mode:
``` javascript
console.log("one two 100".match(/\d+/));
```