I have something like the following:
$a="(left(Title,5) is 'tommy' OR left(MTitle,5) is 'TOMMY')";
$a=preg_replace('/left((.?),(.?)) is /','\1 begins with ',$a);
echo $a;
this returns:
(Title begins with 'tommy' OR left(MTitle,5) is 'TOMMY')
why not:
(Title begins with 'tommy' OR MTitle begins with 'TOMMY')
?
Title and Mtitle won't always be the same and the ,5's can change as well..