Skip to content

A simple Haskell implementation of a Regex compiler / engine

Notifications You must be signed in to change notification settings

k-gruenberg/haskell-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

haskell-regex

A simple Haskell implementation of a Regex compiler / engine.
Use regexCompile to compile a regex from a String and use regexMatch to match a String against a compiled regex.

module Regex (
  Regex,
  regexCompile,   -- :: String -> Regex
  regexMatch,     -- :: Regex -> String -> Bool

  -- Extras:
  regexFind,      -- :: Regex -> String -> Maybe Int
  regexExtract,   -- :: Regex -> String -> Maybe String
  regexReplace,   -- :: Regex -> String -> String -> String
  regexReplaceAll -- :: Regex -> String -> String -> String
)

About

A simple Haskell implementation of a Regex compiler / engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published