Strip comments from a string: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,283: Line 2,283:
=={{header|Wren}}==
=={{header|Wren}}==
This is based on what the post 29th March, 2011 requirements appear to be.
This is based on what the post 29th March, 2011 requirements appear to be.
<syntaxhighlight lang="ecmascript">var markers = ["#", ";"]
<syntaxhighlight lang="wren">var markers = ["#", ";"]


var stripComments = Fn.new { |s|
var stripComments = Fn.new { |s|
Line 2,310: Line 2,310:
' apples, pears ' -> 'apples, pears'
' apples, pears ' -> 'apples, pears'
</pre>
</pre>



=={{header|XPL0}}==
=={{header|XPL0}}==