Q: how to fix Warning: preg_match() I have the below scripts and they give me this warning.
( ! ) Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier ']'

This is my code:
if ((preg_match("<[^>]*script*\"?[^>]*>", $check_url)) || (preg_match("<[^>]*object*\"?[^>]*>", $check_url)) ||
    (preg_match("<[^>]*iframe*\"?[^>]*>", $check_url)) || (preg_match("<[^>]*applet*\"?[^>]*>", $check_url)) ||
    (preg_match("<[^>]*meta*\"?[^>]*>", $check_url)) || (preg_match("<[^>]*style*\"?[^>]*>", $check_url)) ||
    (preg_match("<[^>]*form*\"?[^>]*>", $check_url)) || (preg_match("\([^>]*\"?[^)]*\)", $check_url)) ||
    (preg_match("\"", $check_url))) {
die ();

How can I fix this?

A: The pattern must be changed like this
preg_match("/<[^>]*script*\"?[^>]*>/", $check_url);

