Regex +regex-compat

data Regex :: *
regex-compat Text.Regex
A compiled regular expression.
module Text.Regex
regex-compat Text.Regex
Regular expression matching. Uses the POSIX regular expression interface in Text.Regex.Posix.
matchRegex :: Regex -> String -> Maybe [String]
regex-compat Text.Regex
Match a regular expression against a string
matchRegexAll :: Regex -> String -> Maybe (String, String, String, [String])
regex-compat Text.Regex
Match a regular expression against a string, returning more information about the match.
mkRegex :: String -> Regex
regex-compat Text.Regex
Makes a regular expression with the default options (multi-line, case-sensitive). The syntax of regular expressions is otherwise that of egrep (i.e. POSIX "extended" regular expressions).
mkRegexWithOpts :: String -> Bool -> Bool -> Regex
regex-compat Text.Regex
Makes a regular expression, options can be changed from the default settings.
splitRegex :: Regex -> String -> [String]
regex-compat Text.Regex
Splits a string based on a regular expression. The regular expression should identify one delimiter. This does not advance and produces an infinite list of [] if the regex matches an empty string. This misfeature is here to match the behavior of the the original Text.Regex API.
subRegex :: Regex -> String -> String -> String
regex-compat Text.Regex
Replaces every occurance of the given regexp with the replacement string. In the replacement string, "\1" refers to the first substring; "\2" to the second, etc; and "\0" to the entire match. "\\\\" will insert a literal backslash. This does not advance if the regex matches an empty string. This misfeature is here to match the behavior of the the original Text.Regex API.