yi-language-0.1.0.8: Collection of language-related Yi libraries.

Safe HaskellNone

Yi.Regex

Synopsis

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 SearchExpSource

data SearchExp Source

Constructors

SearchExp 

Instances

Binary SearchExp 

emptyRegex :: RegexSource

The regular expression that matches nothing.

regexEscapeString :: String -> StringSource

Return an escaped (for parseRegex use) version of the string.