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.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(regexString: String): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r)
                                   ^
def apply(regex: Regex): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
                                   ^
def apply(regexWithGroups: RegexWithGroups): ResultOfRegexWordApplication

This method enables the following syntax:

This method enables the following syntax:

string should not fullyMatch regex ("a(b*)c" withGroup "bb")
                                  ^
override def toString: String

Overrides to return "regex"

Overrides to return "regex"

Definition Classes
Any