What would be the php regex to match any one of the following:
privacy.html privacy.htm privacy w3c/privacy.html w3c/privacy.htm w3c/privacy
th
This should work: ^[^\/]+(?:\/[^\/]+)?$
^[^\/]+(?:\/[^\/]+)?$
Try
(w3c/)?privacy(.htm(l)?)?
10char