Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Stringerex<TResult?> OrNullGreedy<TResult>(this Stringerex<TResult>)

Declaration

public static Stringerex<TResult?> OrNullGreedy<TResult>(
    this Stringerex<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

TResult
  • Must derive from: System.ValueType.
  • Must have a default constructor.
  • Must be a non-nullable value type.
Type of the result object associated with each match of the regular expression.

Parameters

this Stringerex<TResult>inner The regular expression to be modified.

Returns

A regular expression whose result object is a nullable version of the original result object.