final class RegexWord extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers
for an overview of
the matchers DSL.
- Source
- Matchers.scala
- Alphabetic
- By Inheritance
- RegexWord
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RegexWord()
Value Members
-
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") ^
-
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(regexString: String): ResultOfRegexWordApplication
This method enables the following syntax:
This method enables the following syntax:
"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r) ^
-
def
toString(): String
Overrides to return "regex"
Overrides to return "regex"
- Definition Classes
- RegexWord → AnyRef → Any