Hi,
I have these vars: $query = "cyan"; $line = "91. <a title="href=http://www.cyanstudio.com/><b>CYAN</b>STUDIO.COM </a><br>";
now I try to find if cyan is in the title string. So I do it like this: preg_match('$query', $line, $matches); but then I get this error: Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash
Any ideas?
thanks!
$query = "/cyan/";
However, for such a simple match, something like strpos will likely be faster:
$query = "cyan"; if(strpos($line, $query) !== FALSE) { // found it }