Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27412

VS 2010 [RESOLVED] Trimming URL

$
0
0
Hey Guys,

What i'm trying to do is trim a list of urls that get imported to the format: site.com (with no protocol or trailing slash after the extension)

There is up to 6 potential variations that can get imported:

Code:

site.com/
www.site.com
www.site.com/
http://www.site.com/
http://site.com
http://site.com/

I tried using split with the "." but one of the 6 examples only uses 1 "." is there an easier way to do this i'm over looking? it seems to get messy when doing splits/replaces for each scenario.

cheers for any help guys :)

Graham

Viewing all articles
Browse latest Browse all 27412

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>