Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Generexes.Stringerex<TResult>

Summary

Provides regular-expression functionality for strings.

Generic type parameters

TResult Type of the result object associated with each match of the regular expression.

Remarks

This type is not directly instantiated; use Stringerex.Process<TResult>(Func<StringerexMatch, TResult>).

Constructors

Stringerex<TResult>(TResult result)
Instantiates an empty regular expression which always matches and returns the specified result object.

Instance methods

Stringerex<TResult>
And<TOtherGenerex, TOtherGenerexMatch>(GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch> other)
Returns a regular expression that only matches if the subarray matched by this regular expression also contains a match for the specified other regular expression. (see also remarks)
Stringerex<TCombinedResult>
And<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherGenerexMatch, TCombinedResult> selector)
Returns a regular expression that only matches if the substring matched by this regular expression also contains a match for the specified other regular expression, and if so, combines the first match’s result object with the second match using a specified selector. (see also remarks)
Stringerex<TResult>
AndExact<TOtherGenerex, TOtherGenerexMatch>(GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch> other)
Returns a regular expression that only matches if the subarray matched by this regular expression also fully matches the specified other regular expression. (see also remarks)
Stringerex<TCombinedResult>
AndExact<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherGenerexMatch, TCombinedResult> selector)
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 first match’s result object with the second match using a specified selector. (see also remarks)
Stringerex<TCombinedResult>
AndExactRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherResult, TCombinedResult> selector)
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. (see also remarks)
Stringerex<TCombinedResult>
AndRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherResult, TCombinedResult> selector)
Returns a regular expression that only matches if the substring matched by this regular expression also contains a match for the specified other regular expression, and if so, combines the result objects associated with both matches using a specified selector. (see also remarks)
Stringerex<TCombinedResult>
AndReverse<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherGenerexMatch, TCombinedResult> selector)
Returns a regular expression that only matches if the substring matched by this regular expression also contains a match for the specified other regular expression when matching backwards, and if so, combines the first match’s result object with the second match using a specified selector. (see also remarks)
Stringerex<TCombinedResult>
AndReverseRaw<TOtherResult, TOtherGenerex, TOtherGenerexMatch, TCombinedResult>(GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch> other, Func<TResult, TOtherResult, TCombinedResult> selector)
Returns a regular expression that only matches if the substring matched by this regular expression also contains a match for the specified other regular expression when matching backwards, and if so, combines the result objects associated with both matches using a specified selector. (see also remarks)
Stringerex<TResult> Matches this regular expression atomically (without backtracking into it) (cf. (?>...) in traditional regular expression syntax).
Stringerex<TOtherResult>
Cast<TOtherResult>()
Returns a regular expression that casts the result object of this regular expression to a different type.
Stringerex<TResult>
Do(Action<StringerexMatch<TResult>> code)
Executes the specified code every time the regular expression engine encounters this expression.
Stringerex<TResult>
DoRaw(Action<TResult> code)
bool
IsMatch(string input, int startAt = 0)
Determines whether the given string contains a match for this regular expression, optionally starting the search at a specified character index.
bool
IsMatch(char[] input, int startAt = 0)
Determines whether the given input sequence contains a match for this regular expression, optionally starting the search at a specified index.
bool
IsMatchAt(string input, int mustStartAt = 0)
Determines whether the given string matches this regular expression at a specific character index.
bool
IsMatchAt(char[] input, int mustStartAt = 0)
Determines whether the given input sequence matches this regular expression at a specific index.
bool
IsMatchExact(string input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given string matches this regular expression exactly.
bool
IsMatchExact(char[] input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given input sequence matches this regular expression exactly.
bool
IsMatchReverse(string input, int? endAt = null)
Determines whether the given string contains a match for this regular expression that ends before the specified maximum character index.
bool
IsMatchReverse(char[] input, int? endAt = null)
Determines whether the given input sequence contains a match for this regular expression that ends before the specified maximum index.
bool
IsMatchUpTo(string input, int? mustEndAt = null)
Determines whether the given string matches this regular expression up to a specific character index.
bool
IsMatchUpTo(char[] input, int? mustEndAt = null)
Determines whether the given input sequence matches this regular expression up to a specific index.
Stringerex<TResult> Turns the current regular expression into a zero-width positive look-ahead assertion (cf. (?=...) in traditional regular expression syntax).
Stringerex<TResult>
LookAheadNegative(TResult defaultMatch)
Turns the current regular expression into a zero-width negative look-ahead assertion (cf. (?!...) in traditional regular expression syntax), which returns the specified default result in case of a match.
Stringerex<TResult> Turns the current regular expression into a zero-width positive look-behind assertion (cf. (?<=...) in traditional regular expression syntax).
Stringerex<TResult>
LookBehindNegative(TResult defaultMatch)
Turns the current regular expression into a zero-width negative look-behind assertion (cf. (?<!...) in traditional regular expression syntax), which returns the specified default result in case of a match.
StringerexMatch<TResult>
Match(string input, int startAt = 0)
Determines whether the given string matches this regular expression, and if so, returns information about the first match.
StringerexMatch<TResult>
Match(char[] input, int startAt = 0)
Determines whether the given input sequence matches this regular expression, and if so, returns information about the first match.
IEnumerable<StringerexMatch<TResult>>
Matches(string input, int startAt = 0)
Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the specified character index. (see also remarks)
IEnumerable<StringerexMatch<TResult>>
Matches(char[] input, int startAt = 0)
Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the specified index. (see also remarks)
IEnumerable<StringerexMatch<TResult>>
MatchesReverse(string input, int? endAt = null)
Returns a sequence of non-overlapping regular expression matches going backwards (starting at the end of the specified string), optionally starting the search at the specified index.
IEnumerable<StringerexMatch<TResult>>
MatchesReverse(char[] input, int? endAt = null)
Returns a sequence of non-overlapping regular expression matches going backwards (starting at the end of the specified input sequence), optionally starting the search at the specified index.
StringerexMatch<TResult>
MatchExact(string input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given string matches this regular expression exactly, and if so, returns information about the match.
StringerexMatch<TResult>
MatchExact(char[] input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given input sequence matches this regular expression exactly, and if so, returns information about the match.
StringerexMatch<TResult>
MatchReverse(string input, int? endAt = null)
Determines whether the given string matches this regular expression, and if so, returns information about the first match found by matching the regular expression backwards (starting from the end of the string).
StringerexMatch<TResult>
MatchReverse(char[] input, int? endAt = null)
Determines whether the given input sequence matches this regular expression, and if so, returns information about the first match found by matching the regular expression backwards (starting from the end of the input sequence).
Stringerex<TOtherResult>
OfType<TOtherResult>()
Returns a regular expression that matches only if the result object of this regular expression is of the specified type.
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression zero times or once. Zero times is prioritised (cf. ?? in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression zero times or once. Once is prioritised (cf. ? in traditional regular expression syntax).
Stringerex<TResult>
Or(Predicate<char> predicate, Func<StringerexMatch, TResult> selector)
Returns a regular expression that matches either this regular expression or a single element that satisfies the specified predicate (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Or(char element, Func<StringerexMatch, TResult> selector)
Returns a regular expression that matches either this regular expression or a single element (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Or(string elements, Func<StringerexMatch, TResult> selector)
Returns a regular expression that matches either this regular expression or the specified sequence of elements (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Or(char element, Func<StringerexMatch, TResult> selector, IEqualityComparer<char> comparer)
Returns a regular expression that matches either this regular expression or a single element using the specified equality comparer (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Or(string elements, Func<StringerexMatch, TResult> selector, IEqualityComparer<char> comparer)
Returns a regular expression that matches either this regular expression or the specified sequence of elements using the specified equality comparer (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Or<TOtherGenerex, TOtherGenerexMatch>(GenerexBase<char, LengthAndResult<TResult>, TOtherGenerex, TOtherGenerexMatch> other)
Returns a regular expression that matches either this regular expression or the specified other regular expression (cf. | in traditional regular expression syntax).
Stringerex<TOtherResult>
Process<TOtherResult>(Func<StringerexMatch<TResult>, TOtherResult> selector)
Processes each match of this regular expression by running it through a provided selector.
Stringerex<TOtherResult>
ProcessRaw<TOtherResult>(Func<TResult, TOtherResult> selector)
Processes each match of this regular expression by running each result through a provided selector.
TResult
RawMatch(string input, int startAt = 0)
Determines whether the given input string matches this regular expression, and if so, returns the result of the first match.
TResult
RawMatch(char[] input, int startAt = 0)
Determines whether the given input sequence matches this regular expression, and if so, returns the result of the first match.
IEnumerable<TResult>
RawMatches(string input, int startAt = 0)
Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the specified index. (see also remarks)
IEnumerable<TResult>
RawMatches(char[] input, int startAt = 0)
IEnumerable<TResult>
RawMatchesReverse(string input, int? endAt = null)
Returns a sequence of non-overlapping regular expression matches going backwards, optionally starting the search at the specified index.
IEnumerable<TResult>
RawMatchesReverse(char[] input, int? endAt = null)
TResult
RawMatchExact(string input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given input string matches this regular expression exactly, and if so, returns the match.
TResult
RawMatchExact(char[] input, int mustStartAt = 0, int? mustEndAt = null)
Determines whether the given input sequence matches this regular expression exactly, and if so, returns the match.
TResult
RawMatchReverse(string input, int? endAt = null)
Determines whether the given input string matches this regular expression, and if so, returns the result of the first match found by matching the regular expression backwards.
TResult
RawMatchReverse(char[] input, int? endAt = null)
Determines whether the given input sequence matches this regular expression, and if so, returns the result of the first match found by matching the regular expression backwards.
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression zero or more times. Fewer times are prioritised (cf. *? in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>>
Repeat(int min)
Returns a regular expression that matches this regular expression the specified number of times or more. Fewer times are prioritised (cf. {min,}? in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>>
Repeat(int min, int max)
Returns a regular expression that matches this regular expression any number of times within specified boundaries. Fewer times are prioritised (cf. {min,max}? in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression zero or more times. More times are prioritised (cf. * in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>>
RepeatGreedy(int min)
Returns a regular expression that matches this regular expression the specified number of times or more. More times are prioritised (cf. {min,} in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>>
RepeatGreedy(int min, int max)
Returns a regular expression that matches this regular expression any number of times within specified boundaries. More times are prioritised (cf. {min,max} in traditional regular expression syntax).
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression one or more times, interspersed with a separator. Fewer times are prioritised.
Stringerex<IEnumerable<TResult>> Returns a regular expression that matches this regular expression one or more times, interspersed with a separator. More times are prioritised.
char[]
Replace(char[] input, Func<StringerexMatch<TResult>, IEnumerable<char>> replaceWith, int startAt = 0, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence with the replacement sequence returned by the given selector.
char[]
Replace(char[] input, IEnumerable<char> replaceWith, int startAt = 0, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence with a replacement sequence. (see also remarks)
char[]
ReplaceRaw(char[] input, Func<TResult, IEnumerable<char>> replaceWithRaw, int startAt = 0, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence with the replacement sequence returned by the given selector.
char[]
ReplaceReverse(char[] input, Func<StringerexMatch<TResult>, IEnumerable<char>> replaceWith, int? endAt = null, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence, matched from the end backwards, with the replacement sequence returned by the given selector.
char[]
ReplaceReverse(char[] input, IEnumerable<char> replaceWith, int? endAt = null, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence, matched from the end backwards, with a replacement sequence.
char[]
ReplaceReverseRaw(char[] input, Func<TResult, IEnumerable<char>> replaceWithRaw, int? endAt = null, int? maxReplace = null)
Replaces each match of this regular expression within the given input sequence, matched from the end backwards, with the replacement sequence returned by the given selector.
Stringerex<TResult>
Then(string str)
Returns a regular expression that matches this regular expression followed by the specified string.
Stringerex<TResult>
Then(params char[] elements)
Returns a regular expression that matches this regular expression followed by the specified sequence of elements.
Stringerex<TResult>
Then(IEnumerable<char> elements)
Stringerex<TResult>
Then(Predicate<char> predicate)
Returns a regular expression that matches this regular expression followed by a single element that satisfies the specified predicate.
Stringerex<TResult>
Then(IEqualityComparer<char> comparer, string str)
Returns a regular expression that matches this regular expression followed by the specified string, using the specified equality comparer.
Stringerex<TResult>
Then(IEqualityComparer<char> comparer, params char[] elements)
Returns a regular expression that matches this regular expression followed by the specified sequence of elements, using the specified equality comparer.
Stringerex<TResult>
Then(IEqualityComparer<char> comparer, IEnumerable<char> elements)
Stringerex<TCombined>
Then<TCombined>(Stringerex other, Func<TResult, StringerexMatch, TCombined> selector)
Returns a regular expression that matches this regular expression, followed by the specified one, and generates a result object that combines the result of this regular expression with the match of the other.
Stringerex<TResult>
Then<TOtherGenerex, TOtherGenerexMatch>(Func<StringerexMatch<TResult>, GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> selector)
Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the match, then matches the new regular expression and retains the result object from the first match. (see also remarks)
Stringerex<TResult>
Then<TOtherGenerex, TOtherGenerexMatch>(params GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>[] other)
Returns a regular expression that matches a consecutive sequence of regular expressions, beginning with this one, followed by the specified ones.
Stringerex<TResult>
Then<TOtherGenerex, TOtherGenerexMatch>(IEnumerable<GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> other)
Stringerex<TCombined>
Then<TOther, TCombined>(Stringerex<TOther> other, Func<TResult, StringerexMatch<TOther>, TCombined> selector)
Returns a regular expression that matches this regular expression, followed by the specified one, and generates a result object that combines the result of this regular expression with the match of the other.
TOtherGenerex
Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<StringerexMatch<TResult>, GenerexBase<char, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>> selector)
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. (see also remarks)
Stringerex<TResult>
ThenExpect(Func<StringerexMatch<TResult>, Exception> exceptionGenerator, params char[] elements)
Returns a regular expression that matches this regular expression, then attempts to match the specified sequence of elements and throws an exception if that sequence fails to match. (see also remarks)
Stringerex<TResult>
ThenExpect(Func<StringerexMatch<TResult>, Exception> exceptionGenerator, IEnumerable<char> elements)
Stringerex<TResult>
ThenExpect(Predicate<char> predicate, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match a single element that satisfies the specified predicate and throws an exception if that predicate fails to match. (see also remarks)
Stringerex<TResult>
ThenExpect(char element, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match a single element and throws an exception if that element fails to match. (see also remarks)
Stringerex<TResult>
ThenExpect(Func<StringerexMatch<TResult>, Exception> exceptionGenerator, IEqualityComparer<char> comparer, params char[] elements)
Returns a regular expression that matches this regular expression, then attempts to match the specified sequence of elements using the specified comparer and throws an exception if that sequence fails to match. (see also remarks)
Stringerex<TResult>
ThenExpect(Func<StringerexMatch<TResult>, Exception> exceptionGenerator, IEqualityComparer<char> comparer, IEnumerable<char> elements)
Stringerex<TCombined>
ThenExpect<TCombined>(Stringerex expectation, Func<TResult, StringerexMatch, TCombined> selector, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match the specified other regular expression and throws an exception if the second regular expression fails to match; otherwise, a result object is generated from the current result object and the second match. (see also remarks)
Stringerex<TResult>
ThenExpect<TOtherGenerex, TOtherGenerexMatch>(Func<StringerexMatch<TResult>, GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> selector, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
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. (see also remarks)
Stringerex<TResult>
ThenExpect<TOtherGenerex, TOtherGenerexMatch>(Func<StringerexMatch<TResult>, Exception> exceptionGenerator, params GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>[] expectation)
Returns a regular expression that matches this regular expression, then attempts to match the specified sequence of other regular expressions and throws an exception if the sequence fails to match. (see also remarks)
Stringerex<TResult>
ThenExpect<TOtherGenerex, TOtherGenerexMatch>(IEnumerable<GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> expectation, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Stringerex<TResult>
ThenExpect<TOtherGenerex, TOtherGenerexMatch>(GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch> expectation, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match the specified other regular expression and throws an exception if the sequence fails to match. (see also remarks)
Stringerex<TCombined>
ThenExpect<TOther, TCombined>(Stringerex<TOther> expectation, Func<TResult, StringerexMatch<TOther>, TCombined> selector, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match the specified other regular expression and throws an exception if the second regular expression fails to match; otherwise, a result object is generated from the current result object and the second match. (see also remarks)
TOtherGenerex
ThenExpect<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<StringerexMatch<TResult>, GenerexBase<char, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>> selector, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, uses a specified selector to create a new regular expression from the match, attempts to match the new regular expression and throws an exception if the new regular expression fails to match. (see also remarks)
Stringerex<TResult>
ThenExpectRaw<TOtherGenerex, TOtherGenerexMatch>(Func<TResult, GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> selector, Func<TResult, Exception> exceptionGenerator)
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. (see also remarks)
Stringerex<TCombined>
ThenExpectRaw<TOther, TCombined>(Stringerex<TOther> expectation, Func<TResult, TOther, TCombined> selector, Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Returns a regular expression that matches this regular expression, then attempts to match the specified other regular expression and throws an exception if the second regular expression fails to match; otherwise, a result object is generated from the result objects of the two matches. (see also remarks)
TOtherGenerex
ThenExpectRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(Func<TResult, GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>> selector, Func<TResult, Exception> exceptionGenerator)
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. The new regular expression’s result object replaces the current one’s. (see also remarks)
Stringerex<TResult>
ThenRaw<TOtherGenerex, TOtherGenerexMatch>(Func<TResult, GenerexNoResultBase<char, TOtherGenerex, TOtherGenerexMatch>> selector)
Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the result of the match, and then matches the new regular expression. This regular expression’s result object remains unaltered. (see also remarks)
Stringerex<TCombined>
ThenRaw<TOther, TCombined>(Stringerex<TOther> other, Func<TResult, TOther, TCombined> selector)
Returns a regular expression that matches this regular expression, followed by the specified one, and generates a result object that combines the original two matches.
TOtherGenerex
ThenRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(Func<TResult, GenerexWithResultBase<char, TOtherResult, TOtherGenerex, TOtherGenerexMatch>> selector)
Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the result of the match, and then matches the new regular expression. This regular expression’s result object is replaced with the new one’s. (see also remarks)
Stringerex<TResult>
Throw(Func<StringerexMatch<TResult>, Exception> exceptionGenerator)
Throws an exception generated by the specified code when the regular expression engine encounters this expression.
Stringerex<IEnumerable<TResult>>
Times(int times)
Returns a regular expression that matches this regular expression the specified number of times (cf. {times} in traditional regular expression syntax).
Stringerex<TResult>
Where(Func<StringerexMatch<TResult>, bool> code)
Restricts matches of this regular expression to those that satisfy the specified predicate.
Stringerex<TResult>
WhereRaw(Func<TResult, bool> code)

Static methods

Stringerex<TResult>
Ors(params Stringerex<TResult>[] other)
Returns a regular expression that matches any of the specified regular expressions (cf. | in traditional regular expression syntax).
Stringerex<TResult>
Ors(IEnumerable<Stringerex<TResult>> other)
Stringerex<TResult>
Recursive(Func<Stringerex<TResult>, Stringerex<TResult>> generator)
Generates a recursive regular expression, i.e. one that can contain itself, allowing the matching of arbitrarily nested expressions.

Operators

Stringerex<TResult>
operator+(Stringerex<TResult> one, Stringerex two)
Returns a regular expression that matches the first regular expression followed by the second and retains the result object generated by each match of the first regular expression.
Stringerex<TResult>
operator+(Stringerex one, Stringerex<TResult> two)
Returns a regular expression that matches the first regular expression followed by the second and retains the result object generated by each match of the second regular expression.
Stringerex<TResult>
operator+(GenerexWithResultBase<char, TResult, Stringerex<TResult>, StringerexMatch<TResult>> one, char two)
Returns a regular expression that matches the specified regular expression (first operand) followed by the specified element (second operand).
Stringerex<TResult>
operator+(char one, GenerexWithResultBase<char, TResult, Stringerex<TResult>, StringerexMatch<TResult>> two)
Returns a regular expression that matches the specified element (first operand) followed by the specified regular expression (second operand).
Stringerex<TResult>
operator+(GenerexWithResultBase<char, TResult, Stringerex<TResult>, StringerexMatch<TResult>> one, Predicate<char> two)
Returns a regular expression that matches the specified regular expression (first operand) followed by a single element that satisfies the specified predicate (second operand).
Stringerex<TResult>
operator+(Predicate<char> one, GenerexWithResultBase<char, TResult, Stringerex<TResult>, StringerexMatch<TResult>> two)
Returns a regular expression that matches a single element that satisfies the specified predicate (first operand) followed by the specified regular expression (second operand).
Stringerex<TResult>
operator|(GenerexWithResultBase<char, TResult, Stringerex<TResult>, StringerexMatch<TResult>> one, Stringerex<TResult> two)
Returns a regular expression that matches either one of the specified regular expressions (cf. | in traditional regular expression syntax).

Static properties

Stringerex<TResult> Returns a regular expression that never matches (cf. (?!) in traditional regular expression syntax).