Posted by Michael Fesser on 05/07/07 17:31
..oO(gosha bine) >Michael Fesser wrote: > >> preg_match('#[a-zA-Z\d]*[A-Z][a-zA-Z\d]*#', $str); >> >Michael, your pattern will also match "*&(*%& Z #)&*(", because it's not >anchored. Use ^ and $ (and not forget /D) to make it do what you want. Correct. Good point. Micha
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming