View Single Post
Old 12-21-2004, 06:04 AM  
Veiga
Confirmed User
 
Join Date: Jun 2001
Location: Portugal
Posts: 157
Regular Expression help PREG_REPLACE()

Hello

I need to do a fast replace using preg_replace on php.

The syntax is:

Everything inside a html href tag "&" with a "#"

So, the html code:

<a href="https://gfy.com/link/blah&g">link &</a>
would go to
<a href="https://gfy.com/link/blah#g">link &</a>

Only replacing the & inside html.
thank you
__________________
Sell me your portuguese Traffic!
Euro Luso
Veiga is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote