| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Darcs.Util.Regex
Description
This module is a subset of the defunct regex-compat-tdfa.
Documentation
The TDFA backend specific Regex type, used by this module's RegexOptions and RegexMaker.
Instances
| RegexOptions Regex CompOption ExecOption | |
Defined in Text.Regex.TDFA.Common Methods defaultCompOpt :: CompOption # defaultExecOpt :: ExecOption # setExecOpts :: ExecOption -> Regex -> Regex # getExecOpts :: Regex -> ExecOption # | |
mkRegex :: String -> Regex Source #
Makes a regular expression with the default options (multi-line,
case-sensitive). The syntax of regular expressions is
otherwise that of egrep (i.e. POSIX "extended" regular
expressions).
Arguments
| :: String | The regular expression to compile |
| -> Bool |
|
| -> Bool |
|
| -> Regex | Returns: the compiled regular expression |
Makes a regular expression, where the multi-line and case-sensitive options can be changed from the default settings.