etamoo

Safe HaskellNone
LanguageHaskell2010

MOO.Builtins.Match

Contents

Description

Regular expression matching via PCRE through the FFI

Synopsis

Documentation

Compiling

newRegexp Source

Arguments

:: Text

pattern

-> Bool

case matters?

-> Either String Regexp 

Compile a regular expression pattern into a Regexp value, or return an error description if the pattern is malformed.

Matching

match :: Regexp -> Text -> MatchResult Source

Perform regular expression matching.

rmatch :: Regexp -> Text -> MatchResult Source

Perform regular expression matching, returning the rightmost match.

Miscellaneous

pcreVersion :: String Source

Return the current version of the linked PCRE library.

verifyPCRE :: IO () Source

Verify the bound PCRE library was built with the required features.