Randy Role 1 Posted December 6, 2012 Report Share Posted December 6, 2012 Hey guys, I'm trying to scrape the number from this element: <a href="http://www.site.com/" onmousedown="return rwt(this,'','','','1','FAGHFGHAFGHAFHGHFghfaghfaghFAGHfah','','JHJHGAjha','','',event)">bla bla</a> I highlighted the number I'm interested in scraping in red. I can scrape <onmousedown=w"return rwt(*)">, but how can I differ between the values within the ()? Thanks Quote Link to post Share on other sites
rocket976 62 Posted December 6, 2012 Report Share Posted December 6, 2012 is it always the 13th, 14th charactor? Did you try substring then replace out the junk you dont need? Quote Link to post Share on other sites
Randy Role 1 Posted December 6, 2012 Author Report Share Posted December 6, 2012 It's not always the 13th 14th character, but it's always between the 7th and 8th apostrophe. I don't know how to get this "this,'','','','1','FAGHFGHAFGHAFHGHFghfaghfaghFAGHfah','','JHJHGAjha','','',event" into a variable. Any idea? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 6, 2012 Report Share Posted December 6, 2012 Try this: find regular expression \'(\d+)\' Quote Link to post Share on other sites
Randy Role 1 Posted December 10, 2012 Author Report Share Posted December 10, 2012 Works well, thanks! Try this: find regular expression \'(\d+)\' Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.