Replace(input, replaceWith, startAt, maxReplace) Replace(input, replaceWith, startAt, maxReplace) ThenExpect(exceptionGenerator, comparer, elements) ThenExpect(exceptionGenerator, comparer, elements) Throw(exceptionGenerator)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: TOtherGenerex Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>)- Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>
Declarationpublic TOtherGenerex Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(
Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>> selector
) Summary
Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the match, and then matches the new regular
expression. Generic type parametersTOtherGenerex |
Type of the regular expression generated by the selector. | TOtherMatch |
Type of internal match information used by TOtherGenerex (i.e. int or
LengthAndResult<T> ). | TOtherGenerexMatch |
Type of match object returned by matches of TOtherGenerex. |
ParametersFunc<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>> | selector |
A delegate that creates a new regular expression from a match of the current regular expression. |
Returns
The resulting regular expression. Remarks
Regular expressions created by this method (and several other overloads listed below) cannot match
backwards. Thus, they cannot be used in calls to any of the following methods: And :
- GenerexNoResultBase<T, TGenerex, TGenerexMatch>.AndReverse<TOtherResult, TOtherGenerex, TOtherGenerexMatch>(GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>)
- Generex<T, TResult>.AndReverse<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>, Func<TResult, TOtherGenerexMatch, TCombinedResult>)
- Stringerex<TResult>.AndReverse<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>, Func<TResult, TOtherGenerexMatch, TCombinedResult>)
- Generex<T, TResult>.AndReverseRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>, Func<TResult, TOtherResult, TCombinedResult>)
- Stringerex<TResult>.AndReverseRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>, Func<TResult, TOtherResult, TCombinedResult>)
LookBehind :
IsMatch :
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.IsMatchReverse(T[], int?)
- Generex.IsMatchReverse<T, TMatch, TGenerex, TGenerexMatch>(this T[], GenerexBase<T, TMatch, TGenerex, TGenerexMatch>, int?)
- Stringerex.IsMatchReverse(string, int?)
- Stringerex<TResult>.IsMatchReverse(string, int?)
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.IsMatchUpTo(T[], int?)
- Generex.IsMatchUpTo<T, TMatch, TGenerex, TGenerexMatch>(this T[], GenerexBase<T, TMatch, TGenerex, TGenerexMatch>, int?)
- Stringerex.IsMatchUpTo(string, int?)
- Stringerex<TResult>.IsMatchUpTo(string, int?)
Match :
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.MatchReverse(T[], int?)
- Generex.MatchReverse<T, TMatch, TGenerex, TGenerexMatch>(this T[], GenerexBase<T, TMatch, TGenerex, TGenerexMatch>, int?)
- Stringerex.MatchReverse(string, int?)
- Stringerex<TResult>.MatchReverse(string, int?)
- GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.RawMatchReverse(T[], int?)
- Stringerex<TResult>.RawMatchReverse(string, int?)
- Generex.RawMatchReverseNullable<T, TResult>(this Generex<T, TResult>, T[], int?)
Matches :
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.MatchesReverse(T[], int?)
- Generex.MatchesReverse<T, TMatch, TGenerex, TGenerexMatch>(this T[], GenerexBase<T, TMatch, TGenerex, TGenerexMatch>, int?)
- Stringerex.MatchesReverse(string, int?)
- Stringerex<TResult>.MatchesReverse(string, int?)
- GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.RawMatchesReverse(T[], int?)
- Stringerex<TResult>.RawMatchesReverse(string, int?)
Replace :
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.ReplaceReverse(T[], Func<TGenerexMatch, IEnumerable<T>>, int?, int?)
- GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.ReplaceReverse(T[], IEnumerable<T>, int?, int?)
- GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.ReplaceReverseRaw(T[], Func<TResult, IEnumerable<T>>, int?, int?)
The overloads affected by this restriction are: - GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>) (this method)
- GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.ThenRaw<TOtherGenerex, TOtherGenerexMatch>(Func<TResult, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>>)
- GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.ThenRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(Func<TResult, GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>>)
-
all overloads of
ThenExpect and ThenExpectRaw .
|