pcre-utils 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+10/−1 lines, 2 files
Files
Text/Regex/PCRE/ByteString/Utils.hs view
@@ -1,3 +1,11 @@+{- | A module implementing regexp-based split and substitute.++>>> substituteCompile "(a+)" "lapin" "'\\1'"+Right "l'a'pin"++>>> splitCompile "\\d" "a1b2c3"+Right ["a","b","c"]+-} module Text.Regex.PCRE.ByteString.Utils ( substitute , split@@ -15,6 +23,7 @@ {-| Substitutes values matched by a `Regex`. References can be used. It doesn't support anything else than global substitution for now ..+ -} substitute :: Regex -- ^ The regular expression, taken from a call to `compile` -> BS.ByteString -- ^ The source string
pcre-utils.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: pcre-utils-version: 0.1.0.1+version: 0.1.0.2 synopsis: Perl-like substitute and split for PCRE regexps. description: This package introduces split and replace like functions using PCRE regexps. license: BSD3