yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Regex
Synopsis
data SearchOption
= IgnoreCase
| NoNewLine
| QuoteRegex
makeSearchOptsM :: [SearchOption] -> String -> Either String SearchExp
data SearchExp = SearchExp {
seInput :: String
seCompiled :: Regex
seBackCompiled :: Regex
}
searchString :: SearchExp -> String
searchRegex :: Direction -> SearchExp -> Regex
emptySearch :: SearchExp
emptyRegex :: Regex
regexEscapeString :: String -> String
module Text.Regex.TDFA
Documentation
data SearchOption Source
Constructors
IgnoreCaseCompile for matching that ignores char case
NoNewLineCompile for newline-insensitive matching
QuoteRegexTreat the input not as a regex but as a literal string to search for.
show/hide Instances
makeSearchOptsM :: [SearchOption] -> String -> Either String SearchExpSource
data SearchExp Source
Constructors
SearchExp
seInput :: String
seCompiled :: Regex
seBackCompiled :: Regex
searchString :: SearchExp -> StringSource
searchRegex :: Direction -> SearchExp -> RegexSource
emptySearch :: SearchExpSource
emptyRegex :: RegexSource
The regular expression that matches nothing.
regexEscapeString :: String -> StringSource
Return an escaped (for parseRegex use) version of the string.
module Text.Regex.TDFA
Produced by Haddock version 2.6.1