implicit final class RegexOps extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RegexOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RegexOps(regex: Regex)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matches(source: CharSequence): Boolean
Returns whether this
Regex
matches the given character sequence.Returns whether this
Regex
matches the given character sequence.Like the extractor, this method takes anchoring into account.
- source
The text to match against
- returns
true if and only if
source
matches thisRegex
.
"""\d+""".r matches "123" // returns true
- See also
Regex#unanchored
Example: - val regex: Regex
-
def
toString(): String
- Definition Classes
- Any