Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Dokkan 2.0
Plt-D v.0.9.6 (Speed Vector)
Fórum ➡ Border of a string S with at least 3 non-overlapping solutions ( yield version ) ♦
Testing 11
Polygon Util
Example of dates in c#, Ejemplo de fechas en c#
Microsoft Code
New easy way to start lightweight threads
Delegates
User Defined Exception (Inherited from built-in Exception class)
stackse - search stackoverflow differently
Please log in to post a comment.