|
Posted by Toby A Inkster on 01/29/07 06:18
Sam wrote:
> ereg('#^(([a-z0-9][-a-z0-9]*?[a-z0-9])\.)+[a-z]{2,6}$#',$domainName)
IIRC, the ereg() function doesn't expect any starting or ending characters
the the regular expression (the hash marks in the above).
Use preg_match() -- it's faster, more flexible and expects the starting and
ending characters!
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|