Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Generex<T, TResult> OrDefaultGreedy<T, TResult>(this Generex<T, TResult>)

Declaration

public static Generex<T, TResult> OrDefaultGreedy<T, TResult>(
    this Generex<T, TResult> inner
)

Summary

Returns a regular expression that matches this regular expression zero times or once. Once is prioritised (cf. ? in traditional regular expression syntax).

Generic type parameters

T The type of objects being matched.
TResult Type of the result object associated with each match of the regular expression.

Parameters

this Generex<T, TResult>inner The regular expression to be modified.

Returns

A regular expression whose result object is the original result object or default(TResult).