c# Programming Glossary: uri.iswellformeduristring
How to check that a uri string is valid http://stackoverflow.com/questions/4835269/how-to-check-that-a-uri-string-is-valid try new Uri uri return true catch return false I tried Uri.IsWellFormedUriString but it doesn't seem to like everything that you can throw at.. For example String test @ C File.txt Console.WriteLine Uri.IsWellFormedUriString says 0 Uri.IsWellFormedUriString test UriKind.RelativeOrAbsolute.. Console.WriteLine Uri.IsWellFormedUriString says 0 Uri.IsWellFormedUriString test UriKind.RelativeOrAbsolute Console.WriteLine IsValidUri..
Uri.IsWellFormedUriString needs to be updated? http://stackoverflow.com/questions/6107621/uri-iswellformeduristring-needs-to-be-updated needs to be updated I think I might have discovered an error.. updated I think I might have discovered an error in the Uri.IsWellFormedUriString method it might be because it only conforms to the RFC 2396.. are now allowed wikipedia among others uses them I think Uri.IsWellFormedUriString should accept them. The regex below is taken from RFC 3986...
|