Substring/Top and tail: Difference between revisions
→{{header|Lasso}}: adding back in the original methods
(→{{header|Lasso}}: adding back in the original methods) |
|||
Line 509:
=={{header|Lasso}}==
<lang Lasso>local(str = 'The quick grey rhino jumped over the lazy green fox.')
// String with first character removed
string_remove(#str,-startposition=1,-endposition=1)
// String with last character removed
string_remove(#str,-startposition=#str->size,-endposition=#str->size)
// String with both the first and last characters removed
string_remove(string_remove(#str,-startposition=#str->size,-endposition=#str->size),-startposition=1,-endposition=1)</lang>
{{out}}
<pre>he quick grey rhino jumped over the lazy green fox.
The quick grey rhino jumped over the lazy green fox
he quick grey rhino jumped over the lazy green fox</pre>
<lang Lasso>local(mystring = 'ÅÜÄÖカ')
|