Substring: Difference between revisions
Content added Content deleted
(wordliness and added requirement for whole string minus first character) |
|||
Line 1: | Line 1: | ||
{{Task|Basic language learning}}[[Category:String manipulation]]{{basic data operation}} |
{{Task|Basic language learning}}[[Category:String manipulation]]{{basic data operation}}The task is to demonstrate the use of substrings within the language. |
||
The solution should demonstrate how to achieve each of the following results: |
|||
* starting from <tt>n</tt> characters in and of <tt>m</tt> length; |
* starting from <tt>n</tt> characters in and of <tt>m</tt> length; |
||
* starting from <tt>n</tt> characters in, up to the end of the string; |
* starting from <tt>n</tt> characters in, up to the end of the string; |
||
* whole string minus |
* the whole string minus the first character; |
||
* the whole string minus the last character; |
|||
* starting from a known character within the string and of <tt>m</tt> length; |
* starting from a known character within the string and of <tt>m</tt> length; |
||
* starting from a known substring within the string and of <tt>m</tt> length. |
* starting from a known substring within the string and of <tt>m</tt> length. |