preg match - php Preg_match_all get all links with specified characters -
i wanna extract links page have pattern:
http://sports.williamhill.com/bet/en-gb/betting/e/(numeric id)/(team1)+v+(team2).html
any idea preg_match_all()
expression should be?
thanks
if team1 , team2 have letters. preg match should this.
preg_match_all('/http:\/\/sports\.williamhill\.com\/bet\/en-gb\/betting\/e\/\d+\/\w+\+v\+\w+\.html/', $input, $matches);
Comments
Post a Comment