Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C# URI parts url
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Uri uri = new Uri("http://insights.bersin.com/community/Human%20Resources/members/"); //Uri uri = new Uri("https://talentone.Bersin.com/Search/?Idx=research&search=test"); Console.WriteLine("Scheme : " + uri.Scheme); Console.WriteLine("Authority : " + HttpUtility.UrlDecode(uri.Authority)); Console.WriteLine("AbsolutPath : " + uri.AbsolutePath); Console.WriteLine("Query : " + HttpUtility.UrlDecode(uri.Query)); Console.WriteLine("Query : " + uri.Query); string t = uri.AbsolutePath.ToLower().Replace("/playbooksolutions/", "/solutions/").Replace("/solution/", "/"); Console.WriteLine(t); } } }
run
|
edit
|
history
|
help
0
Inheritance Ctor
xpath select element code
Bubble Sort
test
latest Iequatable
learning
test
Secure random string
Par ou ímpar input
Time diff with date list