regex - How to recognize urls with similar patterns in C#? -


i need way recognize urls similar pattern, e.g. function returns true when matched

http://mysite.com/page/123 , http://mysite.com/page/456 

or

http://mysite.com/?page=123 , http://mysite.com/?page=456 

or

http://mysite.com/?page=123&param=2 , http://mysite.com/?page=456&param=3 

i don't need check validity of urls here, find out if pattern same. need regular expression it, can't figure out how it. can help? thanks.

may can try levenshtein distance http://www.dotnetperls.com/levenshtein, used find similarity between strings.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -