final class RegexWrapper extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers
for an overview of
the matchers DSL.
This class is used in conjunction with an implicit conversion to enable withGroup
and withGroups
methods to
be invoked on Regex
s.
- Source
- Matchers.scala
- Alphabetic
- By Inheritance
- RegexWrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RegexWrapper(regex: Regex)
Value Members
-
def
withGroup(group: String): RegexWithGroups
This method enables syntax such as the following:
This method enables syntax such as the following:
regex should fullyMatch regex ("a(b*)c" withGroup "bb") ^
-
def
withGroups(groups: String*): RegexWithGroups
This method enables syntax such as the following:
This method enables syntax such as the following:
regex should fullyMatch regex ("a(b*)(c*)" withGroups ("bb", "cc")) ^