Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
domain extraction
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var uri = "https://dev-admin.smoove.io"; var domain = new Uri(uri).Authority; var domainWithDotPrefix = $".{domain}"; Console.WriteLine(domain); Console.WriteLine(domainWithDotPrefix); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
checkvalidtraingle
Date Comparison
A
How to find the first index of a sub-string in a given string?
Convert integer into bit string
yari
Convert String to Pig Latin
First Class
2
Generics Operator test
Please log in to post a comment.