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'; Link to comment https://forums.phpfreaks.com/topic/235083-probably-simple-preg_split-but-im-useless-at-regex/ Share on other sites More sharing options...
silkfire Posted April 30, 2011 Share Posted April 30, 2011 Use pattern &thread=(\d+) Link to comment https://forums.phpfreaks.com/topic/235083-probably-simple-preg_split-but-im-useless-at-regex/#findComment-1208801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.