al4ddin
asked on
remove everything after @ in string
Hi,
I want to remove everything from an email string after @ symbol.
vb.net please.
Thanks
I want to remove everything from an email string after @ symbol.
vb.net please.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi
here is the modified code posted by Pratima_MCS
- Deepak Lakkad
here is the modified code posted by Pratima_MCS
Dim str As String
str = "abc@mail.com"
Dim newstr As String
newstr = str.Substring(0, str.IndexOf("@"))
- Deepak Lakkad
str = "abc@mail.com"
Dim newstr As String
newstr = str.Substring(1, str.IndexOf("@")-1)
in newstr you will get result