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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -