Toby Butzon <[EMAIL PROTECTED]> said:
> lol...
>
> Ok, so you want to replace ONLY the word "boy" with the word "girl"... you
> don't want to touch "boys".
>
> Perhaps str_replace("boy ", "girl ", $myStr) would do the trick?
>
No, I thought of that - if the word is up against a fullstop or comma (or
something else), that won't work. A regular expression will need to be used,
and since I'm no good at them I can't make a suggestion. Sorry. :)
adam
--
PHP Windows 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]