Substring: Difference between revisions
Content added Content deleted
(→{{header|J}}: add requested task) |
(Undo revision 109590 by Markhobley The change asks for a lot of tasks to be updated without flagging such, or mentioning it on the talk page.) |
||
Line 1: | Line 1: | ||
{{Task|Basic language learning}}[[Category:String manipulation]]{{basic data operation}} |
{{Task|Basic language learning}}[[Category:String manipulation]]{{basic data operation}}In this task display a substring: |
||
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 last 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. |