© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
Will Pittenger

❔ What's the best way to test a URL that's it's valid?

I have a situation where the user can enter a URL if they so choose, but if they do, I want to ensure it's valid. How would I do that? Should I use a regular expression test or something else? Normally, this will be a website on the Internet in my case.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

What's the best way to keep a `BackgroundService` alive?
C#CC# / help
4y ago
Best way to test something that depends on a ClientWebSocket
C#CC# / help
4mo ago
What's the best way to implement charts in WPF
C#CC# / help
2y ago
✅ Client needs filtering logic - what's the best way to implement?
C#CC# / help
3y ago