Wednesday, 2 October 2013

Detect presence of a specific String in Javascript String

Detect presence of a specific String in Javascript String

How can i do to search if a Javascript String contains the following
pattern :
"@someting.temp"
I would like to know if the String contains @ character and then someting
and then ".temp" string.
Thanks

No comments:

Post a Comment