ResultOfRegexWordApplication

final class ResultOfRegexWordApplication(val regex: Regex, val groups: IndexedSeq[String])

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

The primary constructor enables the following syntax (with a passed scala.util.matching.Regex):

"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r)
                             ^
class Object
trait Matchable
class Any

Value members

Constructors

def this(regexString: String, groups: IndexedSeq[String])

This auxiliary constructor enables the following syntax (with a passed java.lang.String):

This auxiliary constructor enables the following syntax (with a passed java.lang.String):

"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
                             ^

Concrete methods

override def toString: String

Overrides toString to return regex and groups (if available)

Overrides toString to return regex and groups (if available)

Definition Classes
Any

Concrete fields

val groups: IndexedSeq[String]
val regex: Regex