I am using jsp for a web based project. i want to remove all the characters after '@' including '@'.
suppose I got "stackoverflow@stack.com" as input from a user. I have to remove the characters after @ and also '@' i.e.
o/p is stackoverflow
I think one way is using java array OR by regex. Please suggest me the better way of solving this problem. Are there any other ways of solving this??
How can I do it using JSP? I can not use javascript for this only jsp.
Thank You.