[plt-scheme] pregexp-match-positions

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Mon Oct 29 15:40:39 EDT 2007

Hello all,

I was expecting for pregexp-match-positions to return a list with all
position pairs with a match. It seems, however, that it only returns
the first. If this is the case, why not return just a pair instead of
returning  a list with the pair. Am I missing something?

The example:
> (pregexp-match-positions "\\[\\s*\\d+\\s+[[:alnum:]]+\\s*\\]" "[1 define] [2 define]")
((0 . 10))

On the one hand if it returns all there's a missing pair. It if
returns just one, why not return (0 . 10)?


Paulo Jorge Matos - pocm at soton.ac.uk
PhD Student @ ECS
University of Southampton, UK

Posted on the users mailing list.