rubikitch #546(2007/07/11 08:03 GMT) [ Scheme ] Rating1/1=1.00
1 2 3 4 5 6 7 8 9
(define (remove-comment str) (regexp-replace-all #/\/\*(.+?)(\*\/|$)/ str "")) (print (remove-comment "AAA")) ; => "AAA" (print (remove-comment "AAA/*BBB*/")) ; => "AAA" (print (remove-comment "AAA/*BBB")) ; => "AAA" (print (remove-comment "AAA/*BBB*/CCC")) ; => "AAACCC" (print (remove-comment "AAA/*BBB/*CCC*/DDD*/EEE")) ; => "AAADDD*/EEE" (print (remove-comment "AAA/a//*BB*B**/CCC")) ; => "AAA/a/CCC"
Rating1/1=1.00-0+
[ reply ]
rubikitch
#546()
[
Scheme
]
Rating1/1=1.00
Rating1/1=1.00-0+
[ reply ]