🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Substring Command

BatuhancoskunUser: "Batuhancoskun"
New Altair Community Member
Updated by Batuhancoskun

Hello,

I want to use substring function in compose. For Example:

 Input : str  = 'GeeksForGeeks'         str.Substring(5); Output: ForGeeks

But I don't know its command in Compose. How can I cut string ?

Find more posts tagged with

Sort by:
1 - 2 of 21

    Hi Batuhancoskun,

    As your variable 'str' is a string, you can get desired output by using indexing to get the 'letters' form the string

                --> str(6:end)

               output: ForGeeks

     

    if you want to split a string at a desired character/delimiter  you can use 'strplit', 'regexp'  functions. 

     

    Hope this helps :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

     

     

     

    BatuhancoskunUser: "Batuhancoskun"
    New Altair Community Member
    OP
    Updated by Batuhancoskun

    My problem solved. Thank you for your answer. :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />