Substring/Top and tail: Difference between revisions
Content added Content deleted
No edit summary |
m (Minor tidying) |
||
Line 1: | Line 1: | ||
{{draft task}} |
{{draft task}}[[Category:String manipulation]] |
||
The task is to demonstrate how to remove the first and last characters from a string. The solution should demonstrate how to obtain the following results: |
The task is to demonstrate how to remove the first and last characters from a string. The solution should demonstrate how to obtain the following results: |
||
Line 6: | Line 5: | ||
* String with last character removed |
* String with last character removed |
||
* String with both the first and last characters removed |
* String with both the first and last characters removed |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
Line 45: | Line 33: | ||
room</pre> |
room</pre> |
||
⚫ | |||
[[Category:String manipulation]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |