Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Stringerex<TCombinedResult> AndExactRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>, Func<TResult, TOtherResult, TCombinedResult>)

Declaration

public Stringerex<TCombinedResult> AndExactRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(
    GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other,
    Func<TResult, TOtherResult, TCombinedResult> selector
)

Summary

Returns a regular expression that only matches if the substring matched by this regular expression also fully matches the specified other regular expression, and if so, combines the result objects associated with both matches using a specified selector.

Generic type parameters

TOtherResult The type of the result object associated with each match of other.
TOtherGenerex
  • Must derive from: RT.Generexes.GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>.
The type of the other regular expression. (This is either Generex<T, TResult> or Stringerex<TResult>.)
TOtherGenerexMatch The type of the match object for the other regular expression. (This is either GenerexMatch<T, TResult> or StringerexMatch<TResult>.)
TCombinedResult The type of the combined result object returned by selector.

Parameters

GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>other A regular expression which must match the substring matched by this regular expression.
Func<TResult, TOtherResult, TCombinedResult>selector A selector function that combines the result objects associated with the matches of this regular expression and other into a new result object.

Remarks

It is important to note that a.And(b) is not the same as b.And(a). See GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.And<TOtherGenerex, TOtherGenerexMatch>(GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>) for an example.