Is there any effective/good way to match slug in URL ?
For instance :
match :
- http://somepage.com/s/XXXXX/this-is-slug-i-want
- http://somepage.com/s/XXXXX/this-is-slug-i-want/
- http://somepage.com/s/XXXXX/this-is-slug-i-want?foo=bar
- http://somepage.com/s/XXXXX/this-is-slug-i-want#foo
not to match :
- http://somepage.com/s/XXXXX/somePage.html and similar (.php, etc.)