regexp character classes not supported?

2012-12-28 Thread Limbo Peng
Hi, I'm confused by the result of string-match: (string-match "[0-9]+" "abc123zzz") ;; this works, giving result: #("abc123zzz" (3 . 6)) (string-match "\\d+" "abc123zzz") ;; this doesn't work, giving result: #f Why isn't the "\\d+" syntax (character classes) supported? -Limbo Peng

Re: regexp character classes not supported?

2012-12-28 Thread Mark H Weaver
Limbo Peng writes: > I'm confused by the result of string-match: > > (string-match "[0-9]+" "abc123zzz") ;; this works, giving result: # > ("abc123zzz" (3 . 6)) > (string-match "\\d+" "abc123zzz") ;; this doesn't work, giving result: > #f > > Why isn't the "\\d+" syntax (character classes) suppor

Re: regexp character classes not supported?

2012-12-28 Thread Limbo Peng
On Sat, Dec 29, 2012 at 1:22 AM, Mark H Weaver wrote: > Regular expression syntax is not standardized, and there are several > different variants. The "\d" syntax for character classes is a > non-standard perl extension, and is not supported by Guile. > Thx...seems that I've been taking such sy

Re: regexp character classes not supported?

2012-12-28 Thread Mark H Weaver
Limbo Peng writes: > On Sat, Dec 29, 2012 at 1:22 AM, Mark H Weaver wrote: > > Regular expression syntax is not standardized, and there are > several > different variants.  The "\d" syntax for character classes is a > non-standard perl extension, and is not supported by Guile. >

Re: regexp character classes not supported?

2012-12-28 Thread Limbo Peng
On Sat, Dec 29, 2012 at 3:15 AM, Mark H Weaver wrote: > There are some additional problems with pregexp. It does not appear to > be written with Unicode in mind, and is also written in such a way that > it will probably perform quite poorly on future versions of Guile. > Thanks for pointing out