RegexWord

org.scalatest.matchers.must.Matchers.RegexWord
final class RegexWord

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(regexString: String): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

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

Attributes

def apply(regex: Regex): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

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

Attributes

def apply(regexWithGroups: RegexWithGroups): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

string must not fullyMatch regex ("a(b*)c" withGroup "bb")
                                  ^

Attributes

override def toString: String

Overrides to return "regex"

Overrides to return "regex"

Attributes

Definition Classes
Any