JavaScript Symbol.match Property

The JavaScript Symbol.match is used to identify the matching of a regular expression against a string.

Syntax

Parameters

String

Return value

Return true if a string matches otherwise false.

Browser Support

Chrome32
Safari8
Firefox29
Opera19

Example 1

Test it Now

Output:

True
False 

Example 2

Test it Now

Output:

false
false





Latest Courses