Safe Haskell | None |
---|---|
Language | Haskell2010 |
- (*=~) :: IsRegex RE s => s -> RE -> Matches s
- (?=~) :: IsRegex RE s => s -> RE -> Match s
- (=~) :: (RegexContext Regex s a, RegexMaker Regex CompOption ExecOption s) => s -> RE -> a
- (=~~) :: (Monad m, RegexContext Regex s a, RegexMaker Regex CompOption ExecOption s) => s -> RE -> m a
- module Text.RE
- module Text.RE.PCRE.RE
- module Text.RE.PCRE.ByteString
- module Text.RE.PCRE.ByteString.Lazy
- module Text.RE.PCRE.Sequence
- module Text.RE.PCRE.String
Tutorial
We have a regex tutorial at http://tutorial.regex.uk. These API docs are mainly for reference.
The Overloaded Match Operators
(=~) :: (RegexContext Regex s a, RegexMaker Regex CompOption ExecOption s) => s -> RE -> a Source
the regex-base polymorphic match operator
(=~~) :: (Monad m, RegexContext Regex s a, RegexMaker Regex CompOption ExecOption s) => s -> 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
Text.RE.TDFA.RE contains the toolkit specific to the RE
type,
the type generated by the gegex compiler.
module Text.RE.PCRE.RE
The Operator Instances
These modules merely provide the instances for the above regex match operators at the various text types.
module Text.RE.PCRE.ByteString
module Text.RE.PCRE.ByteString.Lazy
module Text.RE.PCRE.Sequence
module Text.RE.PCRE.String