Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TOtherGenerex AndExact<TOtherResult, TOtherGenerex, TOtherGenerexMatch>(GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>)

Declaration

public TOtherGenerex AndExact<TOtherResult, TOtherGenerex, TOtherGenerexMatch>(
    GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other
)

Summary

Returns a regular expression that only matches if the subarray matched by this regular expression also fully matches the specified other regular expression, and if so, associates each match of this regular expression with the result object returned by the other regular expression’s match.

Generic type parameters

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

Parameters

GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>other A regular expression which must match the subarray matched by this regular expression.

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.