Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eregi_replace Problem

Status
Not open for further replies.

RobHudson

Programmer
Apr 30, 2001
172
GB
Does anybody know why this works on my pc and not on someone elses??

$article = "Click Here";
$article = eregi_replace(&quot;\\*)\\]([^\\[]*)\\[/url\\]&quot;,&quot;<a href=\&quot;[URL unfurl="true"]http://\\1\&quot; target=\&quot;_new\&quot;>\\2</a>&quot;,$article);

It should take &quot;Click Here and make it <a href=&quot; Here</a>

Like I say this works fine for me but not elsewhere - does it work on yours?? Any ideas why it might not be working??

Cheers
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top