How to use regular expressions to pull a substring? (screen scraping)
Posted
by Diego
on Stack Overflow
See other posts from Stack Overflow
or by Diego
Published on 2010-05-20T01:09:05Z
Indexed on
2010/05/20
1:10 UTC
Read the original article
Hit count: 266
Hey guys, i'm really trying to understand regular expressions while scraping a site, i've been using it in my code enough to pull the following, but am stuck here. I need to quickly grab this:
http://www.example.com/online/store/TitleDetail?detail&sku=123456789
from this:
('<a href="javascript:if(handleDoubleClick(this.id)){window.location=\'http://www.example.com/online/store/TitleDetail?detail&sku=123456789\';}" id="getTitleDetails_123456789">\r\n\t\t\t \tcheck store inventory\r\n\t\t\t </a>', 1)
This is where I got confused. any ideas?
© Stack Overflow or respective owner