Matcher

sealed trait Matcher

An engine that performs match operations on a character sequence by interpreting a Pattern.

An engine that performs match operations on a character sequence by interpreting a Pattern.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def end(): Int

Returns the offset after the last character matched.

Returns the offset after the last character matched.

Throws
IllegalStateException
  • If no match has yet been attempted, or if the previous match operation failed
def find(): Boolean

Attempts to find the next subsequence of the input sequence that matches the pattern.

Attempts to find the next subsequence of the input sequence that matches the pattern.

def start(): Int

Returns the start index of the previous match.

Returns the start index of the previous match.

Throws
IllegalStateException
  • If no match has yet been attempted, or if the previous match operation failed