Rosettacode tasks in Perl 6
Search...
Ctrl + K
Programming tasks
S
Strip comments from a string
Copy
$*IN.slurp.subst(
/ \h* <[ # ; ]> \N* /
,
''
, :g).
print
Previous
Strip block comments
Next
Strip control codes and extended characters from a string
Last updated
1 year ago