scala.util.matching.Regex

class Match

[source: scala/util/matching/Regex.scala]

class Match(val source : java.lang.CharSequence, matcher : java.util.regex.Matcher, val groupNames : Seq[java.lang.String])
extends MatchData
A case class for a succesful match.
Value Summary
val end : Int
The index following the last matched character
val start : Int
The index of the first matched character
Method Summary
def end (i : Int) : Int
The index following the last matched character in group i
def force : Match
The match itself with matcher-dependent lazy vals forced, so that match is valid even once matcher is advanced
def groupCount : Int
The number of subgroups
def start (i : Int) : Int
The index of the first matched character in group i
Methods inherited from MatchData
matched, group, subgroups, before, before, after, after, group, toString
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val start : Int
The index of the first matched character
Overrides
MatchData.start

val end : Int
The index following the last matched character
Overrides
MatchData.end

Method Details
def groupCount : Int
The number of subgroups
Overrides
MatchData.groupCount

def start(i : Int) : Int
The index of the first matched character in group i
Overrides
MatchData.start

def end(i : Int) : Int
The index following the last matched character in group i
Overrides
MatchData.end

def force : Match
The match itself with matcher-dependent lazy vals forced, so that match is valid even once matcher is advanced