Class

org.gerweck.scala.util.Regex

FirstMatchExtractor

Related Doc: package Regex

Permalink

final class FirstMatchExtractor extends AnyVal

Enhanced regex operations that aren't supported by regular Scala Regex objects.

Source
Regex.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FirstMatchExtractor
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FirstMatchExtractor(inner: Regex)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to any2stringadd[FirstMatchExtractor] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FirstMatchExtractor, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to ArrowAssoc[FirstMatchExtractor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def ensuring(cond: (FirstMatchExtractor) ⇒ Boolean, msg: ⇒ Any): FirstMatchExtractor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to Ensuring[FirstMatchExtractor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (FirstMatchExtractor) ⇒ Boolean): FirstMatchExtractor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to Ensuring[FirstMatchExtractor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: ⇒ Any): FirstMatchExtractor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to Ensuring[FirstMatchExtractor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): FirstMatchExtractor

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to Ensuring[FirstMatchExtractor] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to StringFormat[FirstMatchExtractor] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  12. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  13. val inner: Regex

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def toString(): String

    Permalink
    Definition Classes
    Any
  16. def unapplySeq(target: String): Option[Seq[String]]

    Permalink

    Extract a sequence of values from the first match found.

    Extract a sequence of values from the first match found.

    This is useful for allowing you to do a sequence of match & extract operations on a string. For example, see the example below of parsing a date string and pulling out its pieces.

    "2012-Q1" match {
      case "(\\d{4})-(\\d{2})-(\\d{2})".rx(year, month, day) => ...
      case "(\\d{4})-Q(\\d)".rx(year, quarter) => ...
    }

    There is no convenient way to do this with the libraries that are built into Scala.

    Note that there is no checking done to ensure that there is only one match.

  17. def [B](y: B): (FirstMatchExtractor, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FirstMatchExtractor to ArrowAssoc[FirstMatchExtractor] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from FirstMatchExtractor to any2stringadd[FirstMatchExtractor]

Inherited by implicit conversion StringFormat from FirstMatchExtractor to StringFormat[FirstMatchExtractor]

Inherited by implicit conversion Ensuring from FirstMatchExtractor to Ensuring[FirstMatchExtractor]

Inherited by implicit conversion ArrowAssoc from FirstMatchExtractor to ArrowAssoc[FirstMatchExtractor]

Ungrouped