Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 2.05 KB

File metadata and controls

69 lines (39 loc) · 2.05 KB

Pattern.Maybe Method

Home

Containing Type: Pattern

Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll

Overloads

Method Summary
Maybe(Object) Appends a pattern that matches specified content zero or one time.
Maybe(Object, Object[]) Appends a pattern that matches any one specified element zero or one time.

Maybe(Object)


Appends a pattern that matches specified content zero or one time.

public Pihrtsoft.Text.RegularExpressions.Linq.QuantifiedGroup Maybe(object content)

Parameters

contentObject

The content to be matched.

Returns

QuantifiedGroup

Exceptions

ArgumentNullException

content is null.

Maybe(Object, Object[])


Appends a pattern that matches any one specified element zero or one time.

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

Parameters

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.