I have a JavaScript String, for example :
var test1 = "[email protected]" ; // Function must return true in this case
var test2 = "[email protected] " ; // Function must return false in this case
I would like to build a function which return true if the String contains @ character, following by any character "bbbbbb" following by ".temp" extension.
How can I do this ?