curiouswebster
asked on
RegEx to make a ReturnURL optional
Making a ReturnURL optional
I need to assert that the URL has one of the following:
- a goto
- a returnurl
- no return url or goto
How do I change this RegEx
string regEx = @"https?://(" + redirectWhitelist + ")/\\?(goto|returnurl)=htt
to permit making the following portion to be optional?
\\?(goto|returnurl)=https?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER