0

Hi

I am having trouble understanding how the pre_replace function works.

I am using a script which has the following line:

$ret = preg_replace("#(@|telefone|e-mail|.com|skype|.com.br|fone|www.|hotmail|yahoo|ig|aol|uol|gmail|bol|msn|MSN)#i", "\\1scriptolutionreplacement", $ret);

What is happening is that any word with for example the letters ig or uol in it is getting caught. Is there a way to alter this line so that it is only unique/complete word such as ig or uol that are amended?

Hope this makes sense and thank you in advance for any advice.

Regards
Mark

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by magicmarkuk
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.