Help with replacing links using regular expressions

Hi everyone,

I’m pretty new to PHP and don’t know anything about regular expressions, so please bear with me. I am writing a script to convert certain HTML tags to QML (another markup language). I want to replace HTML links in a string $page with links of the form ‘_’.$name.’>’.$href.“n”.

Can anyone help… I’m stumped!

What do you have so far? Show us the preg_replace() lines (and the ones surrounding it) and the regex.

Sponsor our Newsletter | Privacy Policy | Terms of Service