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

Safe HaskellNone
LanguageHaskell2010

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

Eq SearchOption Source # 
Generic SearchOption Source # 

Associated Types

type Rep SearchOption :: * -> * #

Binary SearchOption Source # 
type Rep SearchOption Source # 
type Rep SearchOption = D1 (MetaData "SearchOption" "Yi.Regex" "yi-language-0.13.5-82pJGZpM7Ab4TSsQrHNiZy" False) ((:+:) (C1 (MetaCons "IgnoreCase" PrefixI False) U1) ((:+:) (C1 (MetaCons "NoNewLine" PrefixI False) U1) (C1 (MetaCons "QuoteRegex" PrefixI False) U1)))

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.