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 - or if the used-defined expression is empty, a default regex where values to capture are 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 (regex: String, defaultRegex: 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 extractAll (text: String): List[String]

    extract all groups and return a list of strings

  21. def finalize (): Unit

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  28. def regexToUse : String

    returns

    the regex that must be used

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

    remove value markers ${} from a Text fragment

  30. def strip (text: String): String

    remove value markers ${} from the text

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any