I am using positive lookahead regular expression in java to tokenize email addresses. I need to tokenize the email address(for example John.doe@abc.co.in) like this doe@abc.co.in, doe@abc.co.in, @abc.co.in, abc.co.in, .co.in, co.in, .in, in
I am using the following regex to tokenize email address
(?=([\@|\.|\!|\#|\$|\%|\&|\'|\*|\+|\-|\/|\=|\?|\^|\_|\`|\{|\||\}|\~](.+)))
This regex works perfectly and gives the result. Is there any possibility for catastrophic backtracking at some point of time while using this regex. If there is a possibility for catastrophic backtracking, what is the alternative solution to tokenize email addresses?