Jump to content

ignore anything that starts with javascript:


The Little Guy

Recommended Posts

I have this regex, and I can not figure out how to get all the href tags but NOT the ones that are javascript href tags, so basically I want to ignore anything that starts with:

javascript:

 

Here is my current expression:

/\<a.+?href=(\"|')(.+?)(\"|')/i

 

I can not seem to figure it out. Any suggestions?

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.