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

[eluser]basty_dread[/eluser]
the one with link is
Code:
<a href='yahoo.com'>Web design las vegas</a>

this is where we will search:
Code:
$string = "WEB DESIGN Web Design web design <a href='yahoo.com'>web design google</a> las vegas";

i used this preg_replace function, but it replaced web design google las vegas turning the result into:

Code:
<a href='yahoo.com'><a href="http://google.com">web design</a> google</a> las vegas


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