ReplaceRaw(input, replaceWithRaw, startAt, maxReplace)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: TGenerex ThenExpect<TOtherGenerex, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>>, Func<TGenerexMatch, Exception>)Declarationpublic TGenerex ThenExpect<TOtherGenerex, TOtherGenerexMatch>(
Func<TGenerexMatch, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>> selector,
Func<TGenerexMatch, Exception> exceptionGenerator
) Summary
Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the match; then attempts to match the new regular
expression and throws an exception if that regular expression fails to match. This regular expression’s result
object remains unaltered. Generic type parametersTOtherGenerex | This type parameter is not documented. | TOtherGenerexMatch | This type parameter is not documented. |
ParametersFunc<TGenerexMatch, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>> | selector |
The selector that generates a new regular expression, which is expected to match after the current one. | Func<TGenerexMatch, Exception> | exceptionGenerator |
A selector which, in case of no match, generates the exception object to be thrown. |
Returns
The resulting regular expression. Remarks
Regular expressions created by this method cannot match backwards. The full set of affected methods is listed
at GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>). |