bars
Rosettacode tasks in Perl 6
search
circle-xmark
Ctrl
k
copy
Copy
chevron-down
Programming tasks
chevron-right
S
Strip comments from a string
Copy
$*IN.slurp.subst(
/ \h* <[ # ; ]> \N* /
,
''
, :g).
print
Previous
Strip block comments
chevron-left
Next
Strip control codes and extended characters from a string
chevron-right
Last updated
2 years ago
Was this helpful?
Was this helpful?