Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Uri Parts
//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; using System.Web; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Uri uri = new Uri("http://insights.bersin.com/askexperts/?faqid=3441"); //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
Truncate String by Byte
Generic operator test
Sort A List : Print the sorted list of ages of the students
ConcurrentQueue<T>
Event .net guidelines
CommandForce2
asd
Custom thousand separator
Main4
Testing for Integers and Floats in a String