turkman Posted April 29, 2011 Share Posted April 29, 2011 In the source of a webpage, i have lots of data including about 40 lines similar to this. I want to extract the number of &thread= each time this line appears and store them all in an array. onClick="if(!pb_bubble)location.href='/index.cgi?board=general&action=display&thread=13377'; Quote Link to comment Share on other sites More sharing options...
silkfire Posted April 30, 2011 Share Posted April 30, 2011 Use pattern &thread=(\d+) Quote Link to comment Share on other sites More sharing options...
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.