Posted by Jason Barnett on 05/17/05 03:32
<?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); ?>
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming