Skip to content

Regex.Matches Method

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll

Overloads

Method Description
Matches(string, string, RegexFlags) Every match of a pattern in a text.
Matches(string) Every match in a text, as a global search finds them.
Matches(string, int) Every match in a text at or after a position.

Matches(string, string, RegexFlags)

Source: Regex.Matching.cs

Every match of a pattern in a text.

public static MatchCollection Matches(string input, string pattern, RegexFlags flags)

Parameters

Name Type Description
input string The text.
pattern string The pattern.
flags RegexFlags The flags. (optional)

Returns

MatchCollection

The matches.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Matches(string)

Source: Regex.Matching.cs

Every match in a text, as a global search finds them.

public MatchCollection Matches(string input)

Parameters

Name Type Description
input string The text.

Returns

MatchCollection

The matches.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Matches(string, int)

Source: Regex.Matching.cs

Every match in a text at or after a position.

public MatchCollection Matches(string input, int startAt)

Parameters

Name Type Description
input string The text.
startAt int The position, in UTF-16 code units.

Returns

MatchCollection

The matches.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue