>>>>> "VB" == "Brian V Bonini" <[EMAIL PROTECTED]> writes:
> Ok, but I thought the start and end chars were ^ $ i.e., ^is$ or is
> this not what you mean by bounderies?
No, not really. \b matches the start or end of a word. You can see it
clearly if you do this:
print preg_replace( '/\b/', '-', 'this is a string' ) . "<br>\n";
It will output:
-this- -is- -a- -string-
As it replaces all the word boundaries with a hyphen.
So the regular expression /\bis\b/ will match only the word 'is'
and not 'this' or 'isotope' or 'biscuit'.
-robin
--
Robin Vickery.................................................
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]