I’m looking for a PHP PCRE regex to match uri’s that are rewritted with Apache‘s mod_rewrite module. The uri’s are as follow :
/param1/param2/param3/param4
The rules for the uri
- must contain at least one
/; - the params must only allow letters, numbers,
-and_; - there must be zero or more instances of the first two rules;
How about:
Explanation: