hakyll-2.4.3: A simple static site generator library.

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

Documentation

splitRegex :: String -> String -> [String]Source

Split a list at a certain element.

substituteRegexSource

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.

matchesRegexSource

Arguments

:: String

Input string.

-> String

Pattern to match.

-> Bool 

Simple regex matching.