[Top][All Lists]

[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")

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

 CHICKEN version
 regex version 1.0

Ticket URL: <>
CHICKEN Scheme <>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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