Re: regex question
| From: | Jason Barnett | Date: | Tue, 17 May 2005 00:32:08 +0000 |
| Subject: | Re: regex question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215349@lists.php.net to get a copy of this message | ||
<?php
$text = 'Some text @ and some mo@@re and mor@e, etc @@@.';
/** Word boundaries before and after @ */
$regex = '/\b@\b/';
preg_match_all($regex, $text, $matches);
var_dump($matches);
?>