I am searching a paragraph of text with the following:
if (ereg("[a-z][A-Z]", $description, $find)){ echo"Found A Match"; }
This doesn't appear to work. If anyone who has experience at pattern matching could help me I would greatly appreciate.
Chris
Here is the solution I found that works, for anyone who wants to know:
if (preg_match ("/$find/i", $description)) { $found = 1; }
This finds the word in the description without being case sensitive.