| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Yi.Regex
- data SearchOption
- makeSearchOptsM :: [SearchOption] -> String -> Either String SearchExp
- data SearchExp = SearchExp {
- seInput :: String
- seCompiled :: Regex
- seBackCompiled :: Regex
- seOptions :: [SearchOption]
- searchString :: SearchExp -> String
- searchRegex :: Direction -> SearchExp -> Regex
- emptySearch :: SearchExp
- emptyRegex :: Regex
- regexEscapeString :: String -> String
- reversePattern :: (Pattern, (t, DoPa)) -> (Pattern, (t, DoPa))
- module Text.Regex.TDFA
Documentation
data SearchOption Source #
Constructors
| IgnoreCase | Compile for matching that ignores char case |
| NoNewLine | Compile for newline-insensitive matching |
| QuoteRegex | Treat the input not as a regex but as a literal string to search for. |
Instances
makeSearchOptsM :: [SearchOption] -> String -> Either String SearchExp Source #
Constructors
| SearchExp | |
Fields
| |
searchString :: SearchExp -> String Source #
emptyRegex :: Regex Source #
The regular expression that matches nothing.
regexEscapeString :: String -> String Source #
Return an escaped (for parseRegex use) version of the string.
reversePattern :: (Pattern, (t, DoPa)) -> (Pattern, (t, DoPa)) Source #
Reverse a pattern. Note that the submatches will be reversed as well.
module Text.Regex.TDFA