I don't see how these questions are related, please ask each question separately next time.
If you want to put variables in your regex's, you must use preg_quote. "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok. This is not a numeral problem? strval did not make a difference. > I have, however, solved the immediate problem with: > > # if((strtolower(substr($enquiry, 0, 1)) == $rbenquiry)) > if((strtolower(substr($enquiry, 0, strlen($rbenquiry))) == $rbenquiry)) > > However, preg_replace ('/('.$searchenquiry.')/i' , "<b>$1</b>", $mydata->RB) > still gives me: > error: Unknown modifier ... > > $searchenquiry = "1.0.1 Retrospective bibliographies and checklists / bibliographies et > répertoires rétrospectifs"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php