[racket] useage of regexp-replace*

From: 김태윤 (kty1104 at gmail.com)
Date: Wed Nov 17 06:11:55 EST 2010

hello~
I am making comment removing function
but
when str contains
#| comment 1 |#
(define values1 1)
#| comment 2 |#
(define values2 2)
#| comment 3 |#

the following code delete all of my str
 (regexp-replace* "\\#\\|(.*)\\|\\#" str " ")

could somebody let me know how to remove only these comments ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101117/7fb121ed/attachment.html>

Posted on the users mailing list.