Buckethead 1 Posted November 27, 2013 Report Share Posted November 27, 2013 here's my code at the moment, add list to list(%scrapes, $list from text($scrape attribute(<data-subjectid=w"*">, "href"), $new line), "Delete", "Global") at the moment, it scrapes the href from the page, and it looks like this: /wishlist/and?subjectId=20059/wishlist/and?subjectId=35252/wishlist/and?subjectId=54554 etc... how do I remove everything before the numbers, so all i'm left with is this, each on a separate line, eg:200593525254554 cheers Quote Link to post Share on other sites
Sirfrank 17 Posted November 27, 2013 Report Share Posted November 27, 2013 use replace from text functions, replace /wishlist/and?subjectId= replace with nothing ----------add list to list(%scrapes, $list from text($replace($scrape attribute(<data-subjectid=w"*">, "href"), "/wishlist/and?subjectId=", $nothing), $new line), "Delete", "Global")-------this should work 1 Quote Link to post Share on other sites
Buckethead 1 Posted November 27, 2013 Author Report Share Posted November 27, 2013 thank you my man! 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.