<?php $pattern = "/\/(\w{2})\/?(\w{2})\/?\/?(\w+)\/?/"; $sample = '/de/de/euromaster/user/login'; echo (int)preg_match( $pattern, $sample, $matches).PHP_EOL; print_r($matches);
You have javascript disabled. You will not be able to edit any code.