Jump to content

regex to add target attribute to html links


freshwebs

Recommended Posts

So I'm an idiot with regular expressions, I can't ever seem to figure them out.  Could someone help me make a regular expression that will find all the anchors in a block of text and add a target="_blank" attribute to them?  It would be [i]greatly[/i] appreciated.

Thanks!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.