chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1189: string-substitute \NUM syntax with preceding b


From: Chicken Trac
Subject: [Chicken-janitors] #1189: string-substitute \NUM syntax with preceding backslashes
Date: Mon, 04 May 2015 15:52:42 -0000

#1189: string-substitute \NUM syntax with preceding backslashes
------------------------+---------------------------------------------------
 Reporter:  retroj      |       Owner:         
     Type:  defect      |      Status:  new    
 Priority:  major       |   Milestone:  someday
Component:  extensions  |     Version:  4.9.x  
 Keywords:              |  
------------------------+---------------------------------------------------
 I'm seeing an odd behavior with string-substitute.  I want to prefix
 commas in a string with backslashes, but found the following behavior:

 {{{
 > (use regex)

 > (string-substitute #\, "\\ \\0" "a,b")
 "a\\ ,b"

 > (string-substitute #\, "\\\\0" "a,b")
 "a\\\\0b"
 }}}

 The \NUM syntax in the substitution string worked as expected when
 preceded by a space, but not when preceded by another backslash (which was
 escaped).

 CHICKEN version 4.9.0.1
 regex version 1.0

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1189>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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