org.specs2.specification

RegexStep

class RegexStep [P, T] extends AnyRef

A Regular expression step which takes a text and extracts meaningful values according to a regular expression:

- either a user-defined expression for the *full text to extract*: e.g. "Given the following number: (.*)" - or a default regex for groups capturing value delimited with ${}

It provides methods to extract either all the groups as a list, or a number of values as a tuple

Attributes
abstract
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RegexStep
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RegexStep (fullRegex: String, groupRegex: String)

Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def extract1 (t: String): String

    extract the value contained in the first group

  11. def extract10 (t: String): (String, String, String, String, String, String, String, String, String, String)

  12. def extract2 (t: String): (String, String)

  13. def extract3 (t: String): (String, String, String)

  14. def extract4 (t: String): (String, String, String, String)

  15. def extract5 (t: String): (String, String, String, String, String)

  16. def extract6 (t: String): (String, String, String, String, String, String)

  17. def extract7 (t: String): (String, String, String, String, String, String, String)

  18. def extract8 (t: String): (String, String, String, String, String, String, String, String)

  19. def extract9 (t: String): (String, String, String, String, String, String, String, String, String)

  20. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  22. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  23. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  24. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  27. lazy val regexToUse : Regex

    regex to use for a step with a partial function

    regex to use for a step with a partial function

    Attributes
    protected
  28. def strip (f: Fragment): Fragment

    remove value markers ${} from a Text fragment

  29. def strip (text: String): String

    remove value markers ${} from the text

  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def toString (): String

    Definition Classes
    AnyRef → Any
  32. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any