[racket] [throwit1 at gmail.com: Re: issue with function "regexp-replaces"]

From: Sanjeev K Sharma (throwit1 at gmail.com)
Date: Fri Jun 7 11:13:37 EDT 2013

to everyone who read, thanks for your time. 

I was doing something wrong before because this is working fine now 

below the (display-to-file (regexp-replaces ...) 

was giving me problems.  It's identical to what I was doign in my longer program, so now I just have to figure out why the longer program wasn't working but this extracted test piece piece is working 

program

#lang racket
(display "inpu#\nt-str#\ning#\n\n")
(display"inpu\nt-str\ning\n")
(printf"~a~a~n""printf""inpu\nt-str\ning\n")

(printf"~a~n~a~n""replaces"(regexp-replaces "inpu\nt-str\ning#\n" '(("\n""\n<br>"))))
(display-to-file (regexp-replaces "inpu\nt-str\ning#\n" '(("\n""\n<br>"))) "/tmp/TEST_regexp_replaces" #:exists 'truncate)




output: 

Welcome to DrRacket, version 5.3.4 [3m].
Language: racket; memory limit: 10000 MB.
inpu#
t-str#
ing#

inpu
t-str
ing
printfinpu
t-str
ing

replaces
inpu
<br>t-str
<br>ing#
<br>
> 
-------------- next part --------------
An embedded message was scrubbed...
From: Sanjeev K Sharma <throwit1 at gmail.com>
Subject: Re: [racket] issue with function "regexp-replaces"
Date: Fri, 7 Jun 2013 11:04:37 -0400
Size: 3169
URL: <http://lists.racket-lang.org/users/archive/attachments/20130607/e4f22e3d/attachment-0001.mht>

Posted on the users mailing list.