Finding the regular of a piece of code
These 2 pieces of code is in HTML, the HTML is downloaded through file_get_contents to extract the data, Web address: http://rate.taobao.com/user-rate-39512.htm
To get the most recent half-and half-year reviews (positive, negative, and bad), the sample code is as follows
I want to match these two characters at once, how to write the regular
4508530
289048
Tips:
First: class= "J_makepoint" data-point-val= "tbrate.2.5.1" >4508530
The second one: class= "j_show_list j_makepoint" data-point-val= "tbrate.2.4.1" data-param= ' timeline=-210&result=1 ' > 289048
are required to extract the numbers within the tag, such as the first one in 4508530 and the second in 289048, with a regular match
------Solution--------------------
Three of the same stickers? class matches as long as it contains j_makepoint?
------Solution--------------------
PHP Code
/U ", $data, $contents); Echo ' first piece of data: '. $contents [3][0]. '
'; Echo ' The second piece of data: '. $contents [3][1]. '
'; Echo ' third piece of data: '. $contents [3][2]. '
';? >