Jul 10, 2013

Set Visual Studio to "Always Build" before debugging

To set Visual Studio to "Always Build" before debugging:

Navigate to the options as follows:
Tools->Options->Projects and Solutions->Build and Run->On Run, when projects are out of date:
and make sure it is set to "Always Build" if it is not already.
Hope this helps

Jul 5, 2013

Regex to detect URLs with or without protocol name

Regex to detect URLs with or without protocol name

((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)

matches:
http://www.google.com
www.google.com
ftp://google.com
https://www.google.com