MmaTranslator[Mma]
StringPosition
return a list of the starting and ending character positions
Calling Sequence
Parameters
Description
Examples
StringPosition(arguments)
arguments
-
Maple translation of the Mathematica command arguments
The StringPosition command returns a list of the starting and ending character positions at which a specified string appears as a substring.
with⁡MmaTranslatorMma:
Use the command with the Maple translation.
StringPosition⁡abccbaaccbbaa,cc
3,4,8,9
Alternatively, you can use the FromMma command with the evaluate option specified.
with⁡MmaTranslator:
FromMma⁡`StringPosition["abccbaaccbbaa", "cc"]`,evaluate
See Also
MmaTranslator
MmaTranslator[FromMma]
Download Help Document