If the expression has a computable maximum length, this returns it.
If the expression has a computable maximum length, this returns it. Otherwise, it returns None.
This is used for determining whether an expression is suitable for look-behind.
Returns the regular expression represented by this object, in a form suitable to passing to the java.util.regex.Pattern class.
Returns the regular expression represented by this object, in a form suitable to passing to the java.util.regex.Pattern class.
Indicates whether the expression may possibly be zero length.
Indicates whether the expression may possibly be zero length.
Used in some cases for determining repetitionInvalidatesBounds.
Indicates whether applying repetition to the expression invalidates the boundedness computation.
Indicates whether applying repetition to the expression invalidates the boundedness computation. This generally indicates that the expression may match a zero-repetition ({0, n} or ?).
This is used to determine boundedness of enclosing expressions.
Returns an expression that matches the receiver repeated any number of times, using greedy matching.
Returns an expression that matches the receiver repeated any number of times, using greedy matching.
Returns an expression that matches the receiver repeated any number of times, using possessive matching.
Returns an expression that matches the receiver repeated any number of times, using possessive matching.
Returns an expression that matches the receiver repeated any number of times, using reluctant matching.
Returns an expression that matches the receiver repeated any number of times, using reluctant matching.
Returns an expression that matches the receiver repeated at least once, using greedy matching.
Returns an expression that matches the receiver repeated at least once, using greedy matching.
Returns an expression that matches the receiver repeated at least once, using possessive matching.
Returns an expression that matches the receiver repeated at least once, using possessive matching.
Returns an expression that matches the receiver repeated at least once, using reluctant matching.
Returns an expression that matches the receiver repeated at least once, using reluctant matching.
Returns an expression that matches the receiver appearing once or not at all, using greedy matching.
Returns an expression that matches the receiver appearing once or not at all, using greedy matching.
Returns an expression that matches the receiver appearing once or not at all, using possessive matching.
Returns an expression that matches the receiver appearing once or not at all, using possessive matching.
Returns an expression that matches the receiver appearing once or not at all, using reluctant matching.
Returns an expression that matches the receiver appearing once or not at all, using reluctant matching.
Returns an expression that matches the receiver repeated any number of times.
Returns an expression that matches the receiver repeated at least the specified minimum number of times.
Returns an expression that matches the receiver repeated at least the specified minimum number of times.
the minimum number of times that the pattern may be repeated; must be be >= 0;
IllegalArgumentException
if n < 0.
Returns an expression that matches the receiver repeated at least once.
Returns an expression that matches the receiver repeated at least once.
Returns an expression that matches the receiver appearing once or not at all.
Returns an expression that matches the receiver appearing once or not at all.
Returns an expression that matches the receiver repeated the specified number of times.
Returns an expression that matches the receiver repeated the specified number of times.
the exact number of times the pattern must be repeated for the quantified expression to match; must be >= 0.
IllegalArgumentException
if n < 0.
Returns an expression that matches the receiver repeated a number of times within the specified range.
Returns an expression that matches the receiver repeated a number of times within the specified range.
the minimum number of times that the pattern may be repeated; must be >= 0.
the maximum number of times that the pattern may be repeated; must be >= min.
IllegalArgumentException
if min < 0 or max < min.
Passes the regular expression represented by this object to java.util.regex.Pattern and returns the result.
Passes the regular expression represented by this object to java.util.regex.Pattern and returns the result.
Uses the regular expression represented by this object to construct a scala.util.matching.Regex.
Uses the regular expression represented by this object to construct a scala.util.matching.Regex.
Always returns the same value as Expression#expression.
Always returns the same value as Expression#expression.
Interface implemented by regular expression builders that can accept quantifiers.
In order to quantifier an expression that does not include this trait, it should first be wrapped in a Group of some sort.