ReadonlypatternThe pattern, without slashes.
ReadonlyflagsThe flags.
ReadonlytextThe text to search.
ReadonlylimitThe most matches to return.
Optional ReadonlyentriesWhether each line of the text is a separate entry, matched on its own, so that ^ and $
match at its ends and no match spans lines. A line break at the end of the text does not start
another entry.
Text to match against a regex.
gis added to the flags if missing, so every match is found.