Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Generex<T, IEnumerable<TResult>> Repeat(int, int)

  • Declared in: RT.Generexes.Generex<T, TResult>

Declaration

public Generex<T, IEnumerable<TResult>> Repeat(
    int min,
    int max
)

Summary

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).

Parameters

intmin Minimum number of times to match.
intmax Maximum number of times to match.

Exceptions

  • System.ArgumentOutOfRangeException
    min is negative.
  • System.ArgumentException
    max is smaller than min.