parsing a string
Hai everyone,
In my application i need to capture the domain name of any email -id which is passed to my application i.e., when a mail-id like,say abc@xyz.com is passed to my application, i need to know the position of the @ symbol of that id and then i had to get the content(domain name) which follows this @ symbol. So i had to use the indeof() operation here to get the position of @ symbol and then capture the substring that follows it. But i am not getting it right.
I request you to give me an idea of how to get it and if possible plz provide me with some sample code.
Thank you,

