I need to find email addresses in a block of plain text. Regexps regularly hang. Is there some java library that can locate emails in text string?
From a later comment: I need to find email in a string to replace it w. hyperlink.
I need to find email addresses in a block of plain text. Regexps regularly hang. Is there some java library that can locate emails in text string?
From a later comment: I need to find email in a string to replace it w. hyperlink.
An email address is valid if you can send a message to it
Use \S+@\S+
(warning: even space is valid) regex to search for emails.
Then you should send a message to that email and wait for response from the user.
If email address is valid you would receive a response,if not then you can assume that the email address is invalid.This is the only correct way to validate an email address.
have a look at