I have this special XSS line I am trying to catch/detect with a regex. I have tried multiple ones, none seems to work. Although online regex test sites catch it, when I try it in actual code, it does not work.
Here is thee special line that I need to catch with regex:
<< ScRiPT >alert("XSS");//<</ ScRiPT >
And here is what I have so far:
/[<]*<\s*script\s*>.*[/]*[<]*<\s*\/\s*script\s*>/ig;
What am I missing?