Trait

scala.util.matching.Regex

MatchData

Related Doc: package Regex

Permalink

trait MatchData extends AnyRef

This class provides methods to access the details of a match.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def end(i: Int): Int

    Permalink

    The index following the last matched character in group i, or -1 if nothing was matched for that group.

  2. abstract def end: Int

    Permalink

    The index following the last matched character, or -1 if nothing was matched.

  3. abstract def groupCount: Int

    Permalink

    The number of capturing groups in the pattern.

    The number of capturing groups in the pattern. (For a given successful match, some of those groups may not have matched any input.)

  4. abstract val groupNames: Seq[String]

    Permalink

    The names of the groups, or an empty sequence if none defined

  5. abstract val source: CharSequence

    Permalink

    The source from which the match originated

  6. abstract def start(i: Int): Int

    Permalink

    The index of the first matched character in group i, or -1 if nothing was matched for that group.

  7. abstract def start: Int

    Permalink

    The index of the first matched character, or -1 if nothing was matched

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def after(i: Int): CharSequence

    Permalink

    The char sequence after last character of match in group i, or null if nothing was matched for that group.

  5. def after: CharSequence

    Permalink

    Returns char sequence after last character of match, or null if nothing was matched.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def before(i: Int): CharSequence

    Permalink

    The char sequence before first character of match in group i, or null if nothing was matched for that group.

  8. def before: CharSequence

    Permalink

    The char sequence before first character of match, or null if nothing was matched.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def group(id: String): String

    Permalink

    Returns the group with given name.

    Returns the group with given name.

    id

    The group name

    returns

    The requested group

    Exceptions thrown

    NoSuchElementException if the requested group name is not defined

  15. def group(i: Int): String

    Permalink

    The matched string in group i, or null if nothing was matched.

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def matched: String

    Permalink

    The matched string, or null if nothing was matched.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def subgroups: List[String]

    Permalink

    All capturing groups, i.e., not including group(0).

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink

    The matched string; equivalent to matched.toString.

    The matched string; equivalent to matched.toString.

    Definition Classes
    MatchData → AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped