I was working around some regex pattern
I have a variable,
var url = "last_name=Ahuja&something@test.com";
The url contains emailId. I have a regex pattern to check if the variable contains emailId.
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
My requirement is: I want exact negate(opposite) of the above pattern. Like, My condition should be false if the url contains email pattern. I mean the regex pattern should be in that way.
Can somebody please help me on this.