Regexps

Ken Shan ken@digitas.harvard.edu
Wed, 11 Jul 2001 10:43:43 -0400


--TRYliJ5NKNqkz5bu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2001-07-11T15:41:28+0100, Amanda Clare wrote:
>   let exp =3D mkRegex "^class\(\[(.*)\],"  in=20

I think you need to use two backslashes instead of one.  The reason is
that the lexical syntax of Haskell needs two backslashes to represent
a single backslash (which is in turn interpreted by the regular
expression compiler).

--=20
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
"There isn't anyone out there who isn't Seymour's fat lady."

--TRYliJ5NKNqkz5bu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7TGYfzjAc4f+uuBURAq2uAJwLFMjKIgS3ZkatAynZX3PircRl3wCg3r72
qdOZFt/Pyb6UGHU70SM7C7E=
=fB4w
-----END PGP SIGNATURE-----

--TRYliJ5NKNqkz5bu--