| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Text.Regex.PDeriv.String
- data Regex
- data CompOption = CompOption {
- caseSensitive :: Bool
- multiline :: Bool
- rightAssoc :: Bool
- newSyntax :: Bool
- lastStarGreedy :: Bool
- data ExecOption = ExecOption {}
- defaultCompOpt :: RegexOptions regex compOpt execOpt => compOpt
- defaultExecOpt :: RegexOptions regex compOpt execOpt => execOpt
- compile :: CompOption -> ExecOption -> String -> Either String Regex
- execute :: Regex -> String -> Either String (Maybe Env)
- regexec :: Regex -> String -> Either String (Maybe (String, String, String, [String]))
Documentation
The PDeriv backend spepcific Regex type
Instances
data CompOption Source #
Control whether the pattern is multiline or case-sensitive like Text.Regex and whether to capture the subgroups (1, 2, etc). Controls enabling extra anchor syntax.
Constructors
| CompOption | |
Fields
| |
Instances
data ExecOption Source #
Constructors
| ExecOption | |
Fields
| |
Instances
defaultCompOpt :: RegexOptions regex compOpt execOpt => compOpt #
defaultExecOpt :: RegexOptions regex compOpt execOpt => execOpt #
Arguments
| :: CompOption | Flags (summed together) |
| -> ExecOption | Flags (summed together) |
| -> String | The regular expression to compile |
| -> Either String Regex | Returns: the compiled regular expression |