[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Inconsistencies with regexp package?

From: shmul
Subject: [Chicken-users] Inconsistencies with regexp package?
Date: Tue, 11 May 2004 18:46:01 +0200

I understood from the reading the documentation of the regexp unit  that the 
either of the following calls should work

(string-split-fields (regexp "\\d+") "hello 1 cruel 23 world45")

(string-split-fields  "\\d+" "hello 1 cruel 23 world45")

However only the second version does, while the first signals and error:

Error: (string-split-fields) bad argument type - not a string: (:sub (:or (:seq 
(:between #f 1 #f :digit))))

on the other hand the string-match behaves differently with

(string-match-positions "\\d+" "hello 1 cruel 23 world45") returning #f


(string-match-positions (regexp "\\d+") "hello 1 cruel 23 world45") returns 
((6 7))

Is this just incomplete documentation or an implementation problem?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]