Re: preg_guru

From: Date: Mon, 23 Feb 2004 23:53:38 +0000
Subject: Re: preg_guru
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178611@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 delimiters? ex: preg_match("/(:[0-9]{16}:)/", $contents, $match); or something like that... http://br2.php.net/manual/en/function.preg-match.php http://br2.php.net/manual/en/ref.pcre.php welcome to php manual hehe btw, are you actually running those 3 preg_match's? or just the last one? Pete M wrote:
I'm trying to group matches.. the string is (all one line) :2002020720020208: default@http://www.azlyrics.com __ continued... /s/springsteen.html?dsd=sadsa&etc=tec here the first bit I'm trying to match :2002020720020208: preg_match("(:[0-9]{16}:)", $contents, $match); and then the default@ with preg_match("([a-z]{1,20}@)", $contents, $match); and then a combination of the two preg_match("(:[0-9]{16}:)([a-z]{1,20}@)", $contents, $match); get the error Warning: Unknown modifier '(' in /home/incase/public_html/History.IE5/imp.php on line 36 I've trien all sort of stuff to no avail.. tia Pete -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAOpKFaxdA/5C8vH8RAuB3AJ9j72HyG9yKNCwsWD5ue23DCuPfQQCgjPoY /EqpZqwq9+mXCOk2LyAMdlI= =kOjq -----END PGP SIGNATURE-----

« previous php.general (#178611) next »