0

I have these regular expression to grab the Oscars, wins, and nomination from a person (for example Cote de Pablo).

preg_match('/([0-9]+) Oscars/', $url, $oscars);
preg_match('/([0-9]+) ([win|wins]+)/', $url, $wins);
preg_match('/([0-9]+) nominations/', $url, $nominations);

There is more awards than these three though and I wonder how I can grab all of the awards for a person and for a movie or TV serie with two separated regular expression?

Thanks in advance.

4

1 に答える 1

1

正直なところ、コピーして貼り付けるだけですが、一貫して更新したい場合は別の話になります。

于 2012-07-27T23:51:33.027 に答える