I am using the URL for an HTTP resource as unique identifiers for the resources (surprise).
These are all different:
http://localhost/Docs/SomeDocument?group=33&checksafety=true
http://localhost/Docs/SomeDocument?group=11&checksafety=true
http://localhost/Docs/SomeDocument?group=11&checksafety=false
However, I have a third query parameter that should not differentiate resources (on the server side, it pulls the same data from the database).
These are the same (the group and checksafety parameters are the same):
http://localhost/Docs/SomeDocument?group=11&checksafety=false&rendergroup=A
http://localhost/Docs/SomeDocument?group=11&checksafety=false&rendergroup=B
http://localhost/Docs/SomeDocument?rendergroup=C&group=11&checksafety=false
Is a regex appropriate here?
Is there a better way?
I am using C#, .NET 3.5 and ASP.NET.