How to find email in a string

0
I have a fairly simple question, if I have a string and I want to find an email in this string, how can I do this?  For example the text is:   Wow this is amazing, please email me at test@test.nl And I want to know whether there is an email. Using the following regex isMatch($Text,^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$)  does not seems to work.   Any ideas?
asked
1 answers
0

I happened to make it work with the regular expression java library: 

 

@java.lang.Override
public java.lang.Boolean executeAction() throws Exception
{
		// BEGIN USER CODE

		Pattern pattern = Pattern.compile(regularExpression);
		Matcher matcher = pattern.matcher(inputString);
		return matcher.matches();

		// END USER CODE
}

 

answered