ReplaceRaw(input, replaceWithRaw, startAt, maxReplace)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: TGenerex ThenExpectRaw<TOtherGenerex, TOtherGenerexMatch>(Func<TResult, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>>, Func<TResult, Exception>)Declarationpublic TGenerex ThenExpectRaw<TOtherGenerex, TOtherGenerexMatch>(
Func<TResult, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>> selector,
Func<TResult, 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 result object; 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<TResult, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>> | selector |
The selector that generates a new regular expression, which is expected to match after the current one. | Func<TResult, 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>>). |