The following code using Python regex extracts the email id from given string/text
Example
import re s ='[email protected]' result =re.findall('[a-zA-Z0-9]\S*@\S*[a-zA-Z]', s) print result
Output
This gives the output
['[email protected]']
The following code using Python regex extracts the email id from given string/text
import re s ='[email protected]' result =re.findall('[a-zA-Z0-9]\S*@\S*[a-zA-Z]', s) print result
This gives the output
['[email protected]']