Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Laurent
On Fri, Jun 7, 2013 at 5:14 PM, Tobias Hammer wrote: > Compare > (print "\n") > (display "\n") > (Also note that `print' outputs differently from `printf') Laurent Racket Users list: http://lists.racket-lang.org/users

Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Tobias Hammer
If you only use (regexp-...) the return values are implicitly printed by the module and the module uses (print ...). Compare (print "\n") (display "\n") See docs on #%module-begin for more On Fri, 07 Jun 2013 17:04:38 +0200, Sanjeev K Sharma wrote: sorry, I did that too quick I'm getti

Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Sanjeev K Sharma
sorry, I did that too quick I'm getting something working doing this (display (regexp-replace* ... I'll have to figure out now why (regexp-replaces ...) doesn't give me the same. __ On Fri, Jun 07, 2013 at 10:58:06AM -0400, Sanjeev K Sharma wrote: > thanks for the quick response, I can't

Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Sanjeev K Sharma
thanks for the quick response, I can't get newlines in the output program: #lang racket (display "inpu#\nt-str#\ning#\n\n") (printf"~a~a~n""printf""inpu#\nt-str#\ning\n") (printf"~a~a~n""printf""inpu\nt-str\ning\n") (regexp-replace* "\n" "inpu#\nt-str#\ning#\n " "\n") (regexp-replace* "\n" "inpu#

Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Sean Kanaley
(regexp-replace* "\n" input-string "\n") would be the target expansion for those pairs. On 06/07/2013 08:57 AM, Sanjeev K Sharma wrote: I have to clean up a bunch of source files that don't show properly I have a file from which I'm reading a bunch of regular expressions to replace, things li

[racket] issue with function "regexp-replaces"

2013-06-07 Thread Sanjeev K Sharma
I have to clean up a bunch of source files that don't show properly I have a file from which I'm reading a bunch of regular expressions to replace, things like this: (#px"(?i:%5C)""/") but included in the same file (full of from-to pairs) are a bunch of straight string replacements, like thi