[plt-scheme] Possible bug in pregexp-split in 370.

From: Jon Philpott (jon.philpott at gmail.com)
Date: Wed Jun 13 13:12:03 EDT 2007

Hi All,

According to the pregxp documentation:

(pregexp-split "" "smithereens")
=> ("s" "m" "i" "t" "h" "e" "r" "e" "e" "n" "s")

According to mzscheme 370:

$ /usr/local/plt/bin/mzscheme
Welcome to MzScheme v370 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
> (require (lib "pregexp.ss"))
>  (pregexp-split "" "smithereens")
regexp-split: pattern matched a zero-length substring

... and mzscheme 352 (from ubuntu):

Welcome to MzScheme version 352, Copyright (c) 2004-2006 PLT Scheme Inc.
> (require (lib "pregexp.ss"))
> (pregexp-split "" "smithereens")
("s" "m" "i" "t" "h" "e" "r" "e" "e" "n" "s")

Did the behaviour of the function change and documentation didn't? or
is this actually a bug?


Posted on the users mailing list.