PHP RegExpr error Unkown modifier '('
- by Anonymous
I have this regular expression:
([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)
its for extracting links to topics from forum
Now when i use it in my script
$url = "([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)";
preg_match_all spits: "Unknown modifier '('"
Can anyone help me with this obviously stupid problem