substring-parser-0.4.0.0: Match / replace substrings with a parser combinators.
Text.Parser.Substring
Synopsis
matchAll :: Parser a -> Parser [a] Source #
ref: https://stackoverflow.com/questions/29549435/parsec-how-to-find-matches-within-a-string
replaceFileOnceWithParser :: Parser Text -> FilePath -> IO () Source #
replaceOnceWithParser :: Parser Text -> Text -> Text Source #
onceReplacify :: Parser Text -> Parser Builder Source #
takeMatch :: Parser a -> Parser (Text, a) Source #