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.
- 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.
Arguments
:: String | Pattern to replace (regex). |
-> String | Replacement string. |
-> String | Input string. |
-> String | Result. |
Substitute a regex. Simplified interface. This function performs a global substitution.
Simple regex matching.