chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] regex issues


From: felix winkelmann
Subject: Re: [Chicken-users] regex issues
Date: Wed, 18 May 2005 08:09:42 +0200

On 5/15/05, Christian Jaeger <address@hidden> 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 the regular
expression in "^...$", which might be the source of the problem
(string-search-positions seems to work for this example). I will dig
into this when I find the time.

> 
> And is it on purpose that string-substitute* does not interpret
> \NUM references in substitution texts, unlike string-substitute?
> (If so, that should maybe be documented)
> 

I'll document this. Thanks.


cheers,
felix




reply via email to

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