Strip comments from a string

$*IN.slurp.subst(/ \h* <[ # ; ]> \N* /, '', :g).print

Last updated