This is why I hate RegEx's so much. Can someone explain the conditions for the 2 RegEx's here: I'll much appreciate it.
Regex aclQueryStringRegEx = new Regex(".*[&?]acl($|=|&).*");
Regex torrentQueryStringRegEx = new Regex(".*[&?]torrent($|=|&).*");
if (aclQueryStringRegEx.IsMatch(resource))
{
sb.Append("?acl");
}
else if (torrentQueryStringRegEx.IsMatch(resource))
{
sb.Append("?torrent");
}
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.