Regular expression in c++{MFC}
0 Answer(s)      4 years and 8 months ago
Posted in : Regex


I want to build a regular expression in c++{MFC} which validates the URL.

The regular expression must satisfy following conditions.

Valid URL:-

Invalid URL:- 1>\MyWebSite/\ISAPIWEBSITE/\Denypage.aspx/ = Regx must check &

invalid URL as '\' character between "/\MyWebSite/\ISAPIWEBSITE/\Denypage.aspx/"

2> = Regx must check

& invalidate URL due to multiple entries of "///////" in url.

3> = Regex must check & invalidate URL for

additional insertion of %5C & %2F character.

How can we develop a generic Regular Expression satisfying above condition. Please, Help us by providing a regular expression that will handle above scenario's in


Thnaks & Regards, Amit & Pravin

View Answers

Related Tutorials/Questions & Answers: