[Haskell-cafe] Perl-ish =~ operator

Mark Carroll mark at chaos.x-philes.com
Mon Feb 23 12:09:12 EST 2004


On Tue, 24 Feb 2004 ozone at algorithm.com.au wrote:

> In my effort to turn Haskell into a language more like Perl
> (muahaha)[1], I got a bit fed up and implemented something like Perl
> 5's =~ binding operator (a.k.a. "regex" operator); I thought maybe
(snip)

This reminds me that one thing I do miss from the regex stuff I've found
so far in Haskell is Perl's ? operator for turning greedy matches into
minimally-short ones. I can still usually do what I need to with Parsec,
at least, but I just thought I'd mention the issue.

-- Mark


More information about the Haskell-Cafe mailing list