hakyll-2.0: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.Regex
Description
A module that exports a simple regex interface. This code is mostly copied from the regex-compat package at hackage. I decided to write this module because I want to abstract the regex package used.
Synopsis
splitRegex :: String -> String -> [String]
substituteRegex :: String -> String -> String -> String
matchesRegex :: String -> String -> Bool
Documentation
splitRegex :: String -> String -> [String]Source
Split a list at a certain element.
substituteRegexSource
:: StringPattern to replace (regex).
-> StringReplacement string.
-> StringInput string.
-> StringResult.
Substitute a regex. Simplified interface. This function performs a global substitution.
matchesRegexSource
:: StringInput string.
-> StringPattern to match.
-> Bool
Simple regex matching.
Produced by Haddock version 2.7.2