RosettaCodeData/Task/Substring/Maple/substring-4.maple

8 lines
180 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
> pos := searchtext( ",", s ):
> s[ pos .. pos + m - 1 ];
", The"
> pos := searchtext( "Higher", s ):
> s[ pos .. pos + m - 1 ];
"Highe"