hey
if strVar.contains(“-)”
then
strVar.substring(strVar.indexof(0))+strVar.substring(strVar.indexof(“.”)+1)+strVar.substring(strVar.indexof(“-”)+1)
else
strVar.substring(strVar.indexof(0))+strVar.substring(strVar.indexof(“.”)+1,2)
where strVar is a string variable where you can store email
Try this it will work
thanks
hey,
why are you keeping in {} Bracket
just keep in Assign
strFinal=strVar.substring(strVar.indexof(0))+strVar.substring(strVar.indexof(“.”)+1)+strVar.substring(strVar.indexof(“-”)+1)
you will get jdd as output of strFinal.
thanks
I just made a slight modification, and it worked, thank you
strMailSender(0)+strMailSender(strMailSender.IndexOf(“.”)+1)+strMailSender(strMailSender.IndexOf(“.”)+2)
and strMailSender(0)+strMailSender(strMailSender.IndexOf(“.”)+1)+strMailSender(strMailSender.IndexOf(“-”)+1)