[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #686: irregex-replace/all doesn't grok `bos'
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #686: irregex-replace/all doesn't grok `bos' |
Date: |
Tue, 06 Sep 2011 19:11:22 -0000 |
#686: irregex-replace/all doesn't grok `bos'
-----------------------------+----------------------------------------------
Reporter: syn | Owner: sjamaan
Type: defect | Status: new
Priority: major | Milestone: 4.8.0
Component: core libraries | Version: 4.7.x
Resolution: | Keywords: irregex
-----------------------------+----------------------------------------------
Changes (by sjamaan):
* cc: foof (added)
Comment:
The problem is that it uses irregex-fold which walks the string; it starts
at the given starting point, matches and then starts again with the new
starting point in the string being the place where the previous match
ended.
The problem is basically that the beginning of string should only match
when the substring starts at wherever you initially started to match. I'm
not sure if/how this can be solved easily.
--
Ticket URL: <http://bugs.call-cc.org/ticket/686#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.