<?php $str = '/product/random?category_id=1'; $pattern = '/regex/'; var_dump(preg_match($str, $pattern, $matches = []));
You have javascript disabled. You will not be able to edit any code.