Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
(use-modules (ice-9 regex))
|
||||
|
||||
(define (strip-comments s)
|
||||
(regexp-substitute #f
|
||||
(string-match "[ \t\r\n\v\f]*[#;].*" s) 'pre "" 'post))
|
||||
|
||||
(display (strip-comments "apples, pears # and bananas"))(newline)
|
||||
(display (strip-comments "apples, pears ; and bananas"))(newline)
|
||||
Loading…
Add table
Add a link
Reference in a new issue