RosettaCodeData/Task/Strip-comments-from-a-string/Tcl/strip-comments-from-a-string-2.tcl
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

5 lines
148 B
Tcl

# Multi-line string constant
set input "apples, pears # and bananas
apples, pears ; and bananas"
# Do the stripping
puts [stripLineComments $input]