VOOZH about

URL: https://www.geeksforgeeks.org/javascript/javascript-symbol-matchall-property/

⇱ JavaScript Symbol matchAll Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

JavaScript Symbol matchAll Property

Last Updated : 23 Jul, 2025

JavaScript Symbol matchAll property used to return the regular expression that matches against a string. JavaScript String matchAll() method calls this property.

Syntax:
regExp[Symbol.matchAll](str);

Parameter: It takes a string used to find matches of the regular expression against the string.

Return value: The Symbol.matchAll property returns an iterator that returns regular expression matches against the string.

Below examples illustrate the JavaScript Symbol matchAll Property:

Example 1:

Output:

["a"]

Example 2:

Output:

["06","03","2021"]

Example 3:

Output:

["1947"]

Supported Browsers: The browsers supported by Symbol matchAll property are listed below:

  • Google Chrome 51
  • Firefox 50
  • Edge 15
  • Opera
  • Apple Safari

We have a complete list of Javascript symbols' properties and methods, to check those please go through the Javascript Symbol Complete Reference article.

Comment