Strip comments from a string: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 212: | Line 212: | ||
apples, pears, |
apples, pears, |
||
</pre> |
</pre> |
||
=={{header|AutoIt}}== |
=={{header|AutoIt}}== |
||
Line 419: | Line 418: | ||
The modified string is : apples, pears |
The modified string is : apples, pears |
||
Do you want to repeat (y/n): n |
Do you want to repeat (y/n): n |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</pre> |
</pre> |
||
Line 450: | Line 470: | ||
apples, pears |
apples, pears |
||
apples, pears ; and bananas |
apples, pears ; and bananas |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
apples, pears |
apples, pears |
||
</pre> |
</pre> |
||
Line 885: | Line 884: | ||
} |
} |
||
}</lang> |
}</lang> |
||
=={{header|JavaScript}}== |
=={{header|JavaScript}}== |
||
Line 1,262: | Line 1,260: | ||
print |
print |
||
}</lang> |
}</lang> |
||
⚫ | |||
⚫ | |||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Line 1,475: | Line 1,470: | ||
(strip-comments2 text) ; -> "apples, pears\napples, pears" |
(strip-comments2 text) ; -> "apples, pears\napples, pears" |
||
</lang> |
</lang> |
||
⚫ | |||
(formerly Perl 6) |
|||
⚫ | |||
=={{header|Red}}== |
=={{header|Red}}== |