StringPosition - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MmaTranslator[Mma]

  

StringPosition

  

return a list of the starting and ending character positions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

StringPosition(arguments)

Parameters

arguments

-

Maple translation of the Mathematica command arguments

Description

• 

The StringPosition command returns a list of the starting and ending character positions at which a specified string appears as a substring.

Examples

withMmaTranslatorMma:

Use the command with the Maple translation.

StringPositionabccbaaccbbaa,cc

3,4,8,9

(1)

Alternatively, you can use the FromMma command with the evaluate option specified.

withMmaTranslator:

FromMma`StringPosition["abccbaaccbbaa", "cc"]`,evaluate

3,4,8,9

(2)

See Also

MmaTranslator

MmaTranslator[FromMma]

MmaTranslator[Mma]