Regex.match

Regex.match

Regex.match

Function

Returns all matching fragments in the text.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
textAnyNo''The text to be matched will be converted to a string first when called.

Return value

TypeDescription
ArrayReturns an array of all matching text; returns an empty array if there is no match.

Example

Notes

  • Regex.match always returns all find_iter matching results.