<?php $url='http://w...content-available-to-author-only...w.new_pm.com/fr/lookbook/2.html';preg_match_all('@(?:[a-z]{2})?(lookbook)/?(\d*)(?:\.html)?@',$url,$result);print_r($result);
Standard input is empty
Array ( [0] => Array ( [0] => lookbook/2.html ) [1] => Array ( [0] => lookbook ) [2] => Array ( [0] => 2 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!