note 69246 deleted from function.preg-match by colder

From: Date: Mon, 18 Jun 2007 18:33:09 +0000
Subject: note 69246 deleted from function.preg-match by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127634@lists.php.net to get a copy of this message
Note Submitter: dave at kupesoft dot com ---- Here's a way to run a regular expression and catch the match in one line <?php /* ... */ $match = preg_match('/^GET (.+) HTTP\/1\.1/U', $request, $match) ? $match[1] : false; ?> ~

« previous php.notes (#127634) next »