I want to match a URL on my 404 page and based on that I want to redirect user to particular location.
The URL is http://domain.com/there/12345
// example: /there/12345
$request = $_SERVER['REQUEST_URI'];
if (preg_match('', $request)) {
}
What REGEX I should put to get this? And once the test is successful, how can I retrieve this ID (12345) right after constant there?