Welcome Guest, Not a member yet? Register   Sign In
preg_replace function problem
#15

[eluser]basty_dread[/eluser]
works great.. thanks a lot theprodigy..
it takes me so much time try to figure it out..

i was working on crosslinking within the site..

things like this also could occur
Code:
$find = "designing";
$string = "<a href='link'>web desiging for all</a> nice web design";
$finalstring = preg_replace('/(^|[^<a.*?&gt;])('.$find.')\b/iU', '\1<a href="http://yahoo.com">\2</a>', $string,-1,$i);

we will surely have an error with this..

i appreciate your help.. thanks a lot for helping me on it. Many Thanks


Messages In This Thread
preg_replace function problem - by El Forum - 02-16-2010, 11:23 AM
preg_replace function problem - by El Forum - 02-16-2010, 09:28 PM
preg_replace function problem - by El Forum - 02-16-2010, 09:37 PM
preg_replace function problem - by El Forum - 02-16-2010, 09:39 PM
preg_replace function problem - by El Forum - 02-16-2010, 10:26 PM
preg_replace function problem - by El Forum - 02-16-2010, 10:39 PM
preg_replace function problem - by El Forum - 02-16-2010, 10:48 PM
preg_replace function problem - by El Forum - 02-16-2010, 10:54 PM
preg_replace function problem - by El Forum - 02-16-2010, 11:21 PM
preg_replace function problem - by El Forum - 02-16-2010, 11:35 PM
preg_replace function problem - by El Forum - 02-17-2010, 12:18 AM
preg_replace function problem - by El Forum - 02-17-2010, 12:22 AM
preg_replace function problem - by El Forum - 02-17-2010, 12:35 AM
preg_replace function problem - by El Forum - 02-17-2010, 12:54 AM
preg_replace function problem - by El Forum - 02-17-2010, 01:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB