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