[plt-scheme] PRegexp issue

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Mon Oct 29 13:58:41 EDT 2007

On 28/10/2007, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Sun, 28 Oct 2007 16:24:37 +0000, "Paulo J. Matos" wrote:
> > > (pregexp-match-positions "[:digit:]" ...
>
> I think you meant
>
>   (pregexp-match-positions "[[:digit:]]" ...
>
> That is, "[:digit:]" is a name that you can use in a range, and the
> outer "[" and "]" form a range.
>
> In contrast, "\\d" doesn't have to be used in a range.
>

Oh ok, now I got it! :-)

Thank you

> Matthew
>
>
>
>


-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


Posted on the users mailing list.