[Haskell-cafe] Which regular syntax does Text.Regex use?

haskell at list.mightyreason.com haskell at list.mightyreason.com
Mon Jun 11 06:16:35 EDT 2007


L.Guo wrote:
> Hi All:
> 
> I wrote this func :
> 
>   match = matchRegex . mkRegex
> 
> And when using it, I found that I have not even know the syntax of Regex.
> 
> Eager for your hint.
> 

The Text.Regex documentation at
http://www.haskell.org/ghc/docs/latest/html/libraries/regex-compat/Text-Regex.html
merely explains that it uses "Uses the POSIX regular expression interface".
The Posix regular expressions are also called "extended regular expressions" to
distinguish
them from the very old "basic regular expressions".

An online copy of a the relevant manual page is at
http://www.wellho.net/regex/posix.html

The specification is at
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html

-- 
Chris


More information about the Haskell-Cafe mailing list