Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Stringerex<TResult> Or(Predicate<char>, Func<StringerexMatch, TResult>)

Declaration

public Stringerex<TResult> Or(
    Predicate<char> predicate,
    Func<StringerexMatch, TResult> selector
)

Summary

Returns a regular expression that matches either this regular expression or a single element that satisfies the specified predicate (cf. | in traditional regular expression syntax).

Parameters

Predicate<char>predicate The predicate to match a single element against.
Func<StringerexMatch, TResult>selector A selector that returns the result object for the new regular expression based on the element matched by the predicate.