Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
- module Text.Regex.TDFA
Documentation
data SearchOption Source
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. |
makeSearchOptsM :: [SearchOption] -> String -> Either String SearchExp Source
SearchExp | |
|
searchString :: SearchExp -> String Source
searchRegex :: Direction -> SearchExp -> Regex Source
The regular expression that matches nothing.
regexEscapeString :: String -> String Source
Return an escaped (for parseRegex use) version of the string.
module Text.Regex.TDFA