Substring/Top and tail: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
Line 734: Line 734:


=={{header|EasyLang}}==
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
<syntaxhighlight>
string$ = "EasyLang"
s$ = "Easylang"
print substr string$ 1 len string$ - 1 # Without the last character
print substr s$ 1 len s$ - 1
print substr string$ 2 len string$ - 1 # Without the first character
print substr s$ 2 len s$ - 1
print substr string$ 2 len string$ - 2 # Without the first and last characters
print substr s$ 2 len s$ - 2
</syntaxhighlight>
</syntaxhighlight>
{{out}}
{{out}}
<pre>
<pre>
Easylan
EasyLan
asylang
asyLang
asylan
asyLan
</pre>
</pre>