...

View Full Version : Need help with Regex



android
02-25-2008, 12:50 AM
I'm a beginner working on a crawler script...

What would be the regex to find

anything that:

- starts with "http://
- or inside href=" .... "

In both cases there could be double or single quotes.

Any ideas?

shyam
02-25-2008, 11:24 AM
/(['"])(http:\/\/[^'"]+)\1/g

/(href=)?(['"])([^'"]+)\2/g



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum