Re: Re[2]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Peter Lind
On 18 May 2010 09:04, Andre Polykanine wrote: [snip] > Andre Polykanine wrote: >> Hello everyone, >> >> Sorry for bothering you again. >> Today I met a problem exactly described by a developer in users' notes >> that follow the preg_replace description in the manual: >> info at gratisrijden dot

Re[2]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Andre Polykanine
Hello Jim, That might work for that particular example, but I have utf-8 strings containing different characters of different alphabets, so neither str_replace nor strtr work... Thanks! -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon

Re[2]: [PHP] preg_replace();

2007-02-02 Thread wwww
I have tasted the code and it worked fine (if I got you right): $old_string="lazy \"|\" dog"; $new_string=str_replace('"|"', '_', $old_string); print $new_string; I got "lazy_dog" Ed Friday, February 2, 2007, 10:01:14 PM, you wrote: > Thanks, > but I think that I must use preg_replace because