Split string with Bracket ()

Hi ,
I want to split string For Example string : Email (abcd@gmail.com)
I want to “Email” only. can use remove or split.

Thanks,
N@iM

@Naim Try this

   string urvariable = urvariable.Replace("(", "").Replace(")", "")
1 Like

@indra Thanks for your response,
I do same as suggest by you…
It is removing only bracket… I want to remove email with bracket
For Example string : Email (abcd@gmail.com)
I want remove (abcd@gmail.com) need only Email in result

Thanks

Hi @Naim

Try this split(Yourstringvariablevariable,"(")(0).tostring.trim

Thanks

1 Like

Thanks Its working fine

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.