what are you trying to do? Jim Lucas www.bend.com
----- Original Message ----- From: "John Fishworld" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 23, 2002 4:33 PM Subject: [PHP] Still REG EX > I'm still playing about trying to validate an url > www(dot)something(dot)something ! > > I thought this would work but know > > if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str)) > > can anyone explain why not ??? > > ^(w{3}) = three w at start of string ?? > > (\\.) = literal dot ?? > > ([a-zA-Z]+) match any word with letters ?? > > (\\.) = literal dot ?? > > ([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info > > but it doesn't ! > > thanks in advance > john > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php