The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 12:37:02 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Extract all hrefs  (Read 2921 times)
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« on: April 21, 2007, 09:26:17 PM »

<\s*a\s+[^>]*href\s*=\s*[\"'](.*?)[\"'>]
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: April 22, 2007, 11:43:21 AM »

That's tight TD.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Caligula
Rookie
**
Offline Offline

Posts: 39



View Profile
« Reply #2 on: April 24, 2007, 04:44:59 PM »

Here is the one I use... I wrote it this way because I was hitting a page that had their paid ads strung with a numbered id... so it will most likely shave off anything that starts with numbers... but what the hell...


Code:

'/<a href="(http:\/\/[^0-9].+?)"/'

Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!