regex-with-pcre-0.8.0.0: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.PCRE.String

Contents

Synopsis

Tutorial

We have a regex tutorial at http://tutorial.regex.uk. These API docs are mainly for reference.

The Match Operators

(*=~) :: String -> RE -> Matches String Source #

find all matches in text

(?=~) :: String -> RE -> Match String Source #

find first match in text

(=~) :: (Typeable a, RegexContext Regex String a, RegexMaker Regex CompOption ExecOption String) => String -> RE -> a Source #

the regex-base polymorphic match operator

(=~~) :: (Monad m, Functor m, Typeable a, RegexContext Regex String a, RegexMaker Regex CompOption ExecOption String) => String -> RE -> m a Source #

the regex-base monadic, polymorphic match operator

The Toolkit

Beyond the above match operators and the regular expression type below, Text.RE contains the toolkit for replacing captures, specifying options, etc.

module Text.RE

The RE Type and functions

Text.RE.PCRE.RE contains the toolkit specific to the RE type, the type generated by the gegex compiler.

compileRegex :: (Functor m, Monad m) => String -> m RE Source #

compie a RE from a string using default options

compileRegexWith :: (Functor m, Monad m) => SimpleRegexOptions -> String -> m RE Source #

compie a RE from a String and SimpleRegexOptions

Orphan instances