HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleregex-pcre-builtin-0.95.2.3.8.44Haskell2010

Text.Regex.PCRE.ByteString.Lazy

This exports instances of the high level API and the medium level API of compile,execute, and regexec.

Contents
  1. Types
  2. Miscellaneous
  3. Medium level API functions
  4. CompOption flags
  5. ExecOption flags
Synopsis

Types

datadata Regex

A compiled regular expression

Instances19RegexOptions, RegexMaker, RegexLike, RegexContext, …
newtypenewtype CompOption
#

Constructors

Instances11Eq, Num, Show, Bits, RegexOptions, RegexMaker, …
newtypenewtype ExecOption
#

Constructors

Instances11Eq, Num, Show, Bits, RegexOptions, RegexMaker, …
newtypenewtype ReturnCode
#
Instances2Eq, Show
  • Eq ReturnCodeDefined in regex-pcre-builtin-0.95.2.3.8.44 · Text.Regex.PCRE.Wrap
  • Show ReturnCodeDefined in regex-pcre-builtin-0.95.2.3.8.44 · Text.Regex.PCRE.Wrap

Miscellaneous

Medium level API functions

valueexecute
  1. :: Regex

    Compiled regular expression

  2. -> ByteString

    String to match against

  3. -> IO (Either WrapError (Maybe (Array Int (MatchOffset, MatchLength))))

    Returns: Nothing if the regex did not match the string, or: Just an array of (offset,length) pairs where index 0 is whole match, and the rest are the captured subexpressions.

Matches a regular expression against a buffer, returning the buffer indicies of the match, and any submatches

| Matches a regular expression against a string

CompOption flags

ExecOption flags

Orphan instances

3 instances