Skip to content

Latest commit

 

History

History
81 lines (45 loc) · 2.46 KB

File metadata and controls

81 lines (45 loc) · 2.46 KB

Pattern.NamedGroup Method

Home

Containing Type: Pattern

Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll

Overloads

Method Summary
NamedGroup(String, Object) Appends a named group with a specified name and content.
NamedGroup(String, Object[]) Appends a named group with a specified name and content.

NamedGroup(String, Object)


Appends a named group with a specified name and content.

public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern NamedGroup(string name, object content)

Parameters

nameString

A name of the group.

contentObject

The content to be matched.

Returns

QuantifiablePattern

Exceptions

ArgumentException

name is not a valid regex group name.

ArgumentNullException

name or content is null.

NamedGroup(String, Object[])


Appends a named group with a specified name and content.

public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern NamedGroup(string name, params object[] content)

Parameters

nameString

A name of the group.

contentObject[]

An object array that contains zero or more patterns any one of which has to be matched.

Returns

QuantifiablePattern

Exceptions

ArgumentException

name is not a valid regex group name.

ArgumentNullException

name or content is null.