curiouswebster
asked on
Blocking a period at a specific location using RegEx
Blocking a period at the end of a whitelisted URL?
I have a RegEx which is partly working to help verify a white listed list of domains, with '|' as delimiter, is working
string regEx3 = @"https?://(" + whitelist + ")(.*)\\?(goto|returnurl)= https?://( " + whitelist + ")";
But I need to BLOCK a domain which uses my white listed domain as a sub-domain.
sso.mydomain.com is okay, but the following is not
sso.mydomain.com.badURL.co m
I need to make the RegEx fail when it discovers a period after the white listed domain.
How?
Thanks
I have a RegEx which is partly working to help verify a white listed list of domains, with '|' as delimiter, is working
string regEx3 = @"https?://(" + whitelist + ")(.*)\\?(goto|returnurl)=
But I need to BLOCK a domain which uses my white listed domain as a sub-domain.
sso.mydomain.com is okay, but the following is not
sso.mydomain.com.badURL.co
I need to make the RegEx fail when it discovers a period after the white listed domain.
How?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER