Re: [Chicken-users] regex issues

2005-05-18 Thread felix winkelmann
On 5/15/05, Christian Jaeger <[EMAIL PROTECTED]> wrote: > Hello > > Is this a bug?: > > (string-match-positions ".*needle.*" "hay needle stack" 2) -> #f > > Shouldn't it be giving ((2 16)) ? > This is Version 1, Build 89, on Debian. > Here is a patch: --- chicken-old/pcre.scm2005-05

Re: [Chicken-users] regex issues

2005-05-18 Thread Christian Jaeger
At 8:09 Uhr +0200 18.05.2005, felix winkelmann wrote: You're using PCRE, right? Yes: (require 'regex) (test-feature? 'pcre) => t Christian. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] regex issues

2005-05-18 Thread Zbigniew
Correct, I am using libc regex (on OS X). On 5/18/05, felix winkelmann <[EMAIL PROTECTED]> wrote: > I assume Christian uses pcre and you not right? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken

Re: [Chicken-users] regex issues

2005-05-18 Thread felix winkelmann
On 5/17/05, Zbigniew <[EMAIL PROTECTED]> wrote: > Your example works for me on 1.935. > > #;18> (use regex) > ; loading library regex ... > #;19> (string-match-positions ".*needle.*" "hay needle stack" 2) > ((2 16)) > I assume Christian uses pcre and you not right? cheers, felix

Re: [Chicken-users] regex issues

2005-05-18 Thread felix winkelmann
On 5/15/05, Christian Jaeger <[EMAIL PROTECTED]> wrote: > Hello > > Is this a bug?: > > (string-match-positions ".*needle.*" "hay needle stack" 2) -> #f > > Shouldn't it be giving ((2 16)) ? > This is Version 1, Build 89, on Debian. You're using PCRE, right? The "...-match-..." functions wrap

Re: [Chicken-users] regex issues

2005-05-18 Thread Zbigniew
Your example works for me on 1.935. #;18> (use regex) ; loading library regex ... #;19> (string-match-positions ".*needle.*" "hay needle stack" 2) ((2 16)) On 5/15/05, Christian Jaeger <[EMAIL PROTECTED]> wrote: > Hello > > Is this a bug?: > > (string-match-positions ".*needle.*" "hay needle

[Chicken-users] regex issues

2005-05-17 Thread Christian Jaeger
Hello Is this a bug?: (string-match-positions ".*needle.*" "hay needle stack" 2) -> #f Shouldn't it be giving ((2 16)) ? This is Version 1, Build 89, on Debian. And is it on purpose that string-substitute* does not interpret \NUM references in substitution texts, unlike string-substitute? (If so,