i have this regex that i use with my website
^.*/([a-z0-9,-]+)/([a-z0-9,-]+)/$
My question is who i can use querystring with my regex,
/about-us/contact/?l=en -> page.aspx?id=12&l=en
where id=1 = /about-us/contact/
where l=en = /?l=en
EDIT:
^.*/([a-z0-9,-]+)/([a-z0-9,-]+)/(\?l=en)
i get error on this : \ i C#
Is there a way in regex to tell if ?x=x exist the regex is a match, but if ?x=x don't exist the regex for /about-us/contact/ is a match?
Thanks,