note 42708 added to function.preg-match

From: Date: Wed, 26 May 2004 19:38:04 +0000
Subject: note 42708 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-70142@lists.php.net to get a copy of this message
hello everybody, sorry for my english but i come from belgium and i'm just 16 years... I post the regex to detect mail and url. I found it easy and not sot complicate ! for the url "#^(http[s]?://)?(www.)?((\w)+).((\w)+)(/(.*?))?$#i" and for the mail "#^([a-z0-9.-]*)@([-a-z0-9]+).(\w+)(.*?)$#i" may be, it exist more simple... i look forward to fresh news ! ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42708 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42708&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42708&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70142) next »