Substring/Top and tail: Difference between revisions

Content added Content deleted
(Added zsh solution)
Line 786:
echo ${str%?} # Remove last char
echo ${${str#?}%?} # Remove first & last chars
</lang>
 
=={{header|Vala}}==