playMaker

Author Topic: Help Needed How To Separate/Split String  (Read 1013 times)

apageeltd

  • Playmaker Newbie
  • *
  • Posts: 38
Help Needed How To Separate/Split String
« on: December 01, 2020, 01:52:15 AM »
Hi,

I am trying to Split/Separate a string

Ex: String : shihan@gmail.com

So I want to Separate the @gmail.com And ONLY get the Name(Shihan).

I am not being able to figure out how to do it.

Please anyone suggest.

Regards,
Shihan

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Help Needed How To Separate/Split String
« Reply #1 on: December 01, 2020, 08:01:20 AM »
Hi.
There is a custom action called "String Get Last Index Of" on the Ecosystem

you can use that to find the '@' index.

on that index i believe you need to add 1 int.

then use get string left and use the index as length