Jim Higgins wrote:
>
> For use with preg_replace() I need a regular expression that will
> match Mcdonald and Macpherson, but not Mack or any other four-letter
> word starting with Mac.
>
> Ma?c works for the first two, but it also matches Mack (etc). I'm
> drawing a blank.
>
> Help? Thanks.
{5,} = five or more characters in the sequence that you.
example can be found at: http://www.php.net/preg_replace
--
//Aho