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