Skip to content

Latest commit

 

History

History
85 lines (47 loc) · 2.83 KB

File metadata and controls

85 lines (47 loc) · 2.83 KB

Pattern.MaybeCount Method

Home

Containing Type: Pattern

Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll

Overloads

Method Summary
MaybeCount(Int32, Object) Appends a pattern that matches specified pattern at most specified number of times.
MaybeCount(Int32, Object, Object[]) Appends a pattern that matches any one specified pattern at most specified number of times.

MaybeCount(Int32, Object)


Appends a pattern that matches specified pattern at most specified number of times.

public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiedGroup MaybeCount(int maxCount, object content)

Parameters

maxCountInt32

A maximum number of times the pattern can be matched.

contentObject

The content to be matched.

Returns

QuantifiedGroup

Exceptions

ArgumentNullException

content is null.

ArgumentOutOfRangeException

maxCount is less than zero.

MaybeCount(Int32, Object, Object[])


Appends a pattern that matches any one specified pattern at most specified number of times.

public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiedGroup MaybeCount(int maxCount, object first, params object[] others)

Parameters

maxCountInt32

A maximum number of times the pattern can be matched.

firstObject

First element of a sequence that contains patterns any one of which has to be matched.

othersObject[]

Other elements of a sequence that contains patterns any one of which has to be matched.

Returns

QuantifiedGroup

Exceptions

ArgumentNullException

first is null.

ArgumentOutOfRangeException

maxCount is less than zero.