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.
withMmaTranslatorMma:
Use the command with the Maple translation.
StringPositionabccbaaccbbaa,cc
3,4,8,9
Alternatively, you can use the FromMma command with the evaluate option specified.
withMmaTranslator:
FromMma`StringPosition["abccbaaccbbaa", "cc"]`,evaluate
See Also
MmaTranslator
MmaTranslator[FromMma]
Download Help Document