regex , php, preg_match -
I am trying to remove the mileage value from various eBay pages, but I got stuck because there are so many patterns because the page is slightly It is different so I would like to know that you can help me with a better pattern. Here are some examples of things:
Please see the pattern on the following link (I still can not understand how to save html
http://pastebin.com/zk4HAY3T< P> Although they are not enough enough, it seems that there are still new peters ...
This is a bit more common - It does not care about HTML tags, it works on all three links provided by you. .
/ mileage [^
Of course, there may be better ways, depending on the other obstacles you have, but this is a good starting point.
Accepting the repetition there, you can make (logically, at least) a little more easy:
/ mileage [^ <<
Again the line between the words 'mileage' and 'miles' Two HTML tags in Looking for It is (?: & Lt; [^ & gt;] * & gt;) {2}
part ?:
says that to not remember the sequence, So that $ matches [1]
still contains the number you are looking for, and {2}
indicates that you match the previous sequence exactly twice Want to
Comments
Post a Comment