7 lines
186 B
Text
7 lines
186 B
Text
stripComments: function [str][
|
|
strip replace str {/[#;].+/} ""
|
|
]
|
|
|
|
loop ["apples, pears # and bananas", "apples, pears ; and bananas"] 'str [
|
|
print [str "->" stripComments str]
|
|
]
|