Strip whitespace from a string/Top and tail: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: ?) |
Drkameleon (talk | contribs) (added Arturo) |
||
Line 259: | Line 259: | ||
Much Ado About Nothing<--", "-->Much Ado About Nothing<--"}</lang> |
Much Ado About Nothing<--", "-->Much Ado About Nothing<--"}</lang> |
||
=={{header|Arturo}}== |
|||
<lang rebol>str: " Hello World " |
|||
print [pad "strip all:" 15 ">" strip str "<"] |
|||
print [pad "strip leading:" 15 ">" strip.start str "<"] |
|||
print [pad "strip trailing:" 15 ">" strip.end str "<"]</lang> |
|||
{{out}} |
|||
<pre> strip all: > Hello World < |
|||
strip leading: > Hello World < |
|||
strip trailing: > Hello World <</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |