dregex

Regex

trait Regex extends StrictLogging

A regular expression, ready to be tested against strings, or to take part in an operation against another. Internally, instances of this type have a DFA (Deterministic Finite Automaton).

Linear Supertypes
StrictLogging, Logging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Regex
  2. StrictLogging
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def dfa: Dfa

  2. abstract def universe: Universe

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def diff(other: Regex): Regex

    Subtract other regular expression from this one.

    Subtract other regular expression from this one. The resulting expression will match the strings that are matched this expression and are not matched by the other, and only those. Differences take O(n*m) time, where n and m are the number of states of the DFA of the operands.

  9. def doIntersect(other: Regex): Boolean

    Return whether this expression matches at least one string in common with another.

    Return whether this expression matches at least one string in common with another. Intersections take O(n*m) time, where n and m are the number of states of the DFA of the operands.

  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def equiv(other: Regex): Boolean

    Return whether this regular expression is equivalent to other.

    Return whether this regular expression is equivalent to other. Two regular expressions are equivalent if they match exactly the same set of strings. This operation takes O(n*m) time, where n and m are the number of states of the DFA of the operands.

  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def intersect(other: Regex): Regex

    Intersect this regular expression with another.

    Intersect this regular expression with another. The resulting expression will match the strings that are matched by the operands, and only those. Intersections take O(n*m) time, where n and m are the number of states of the DFA of the operands.

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isProperSubsetOf(other: Regex): Boolean

  19. def isSubsetOf(other: Regex): Boolean

  20. val logger: Logger

    Attributes
    protected
    Definition Classes
    StrictLogging → Logging
  21. def matchAndReport(string: String): (Boolean, Int)

    Similar to method matches, except that also return how many characters were successfully matched in case of failure.

  22. def matches(string: String): Boolean

    Return whether a string is matched by the regular expression (i.

    Return whether a string is matched by the regular expression (i.e. whether the string is included in the language generated by the expression). As the match is done using a DFA, its complexity is O(n), where n is the length of the string. It is constant with respect to the length of the expression.

  23. def matchesAnything(): Boolean

    Return whether this regular expression matches anything.

    Return whether this regular expression matches anything. Note that the empty string is a valid match.

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def union(other: Regex): Regex

    Unite this regular expression with another.

    Unite this regular expression with another. The resulting expression will match the strings that are matched by either of the operands, and only those. Unions take O(n*m) time, where n and m are the number of states of the DFA of the operands.

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped