Milan Tripathi Milan Tripathi - 1 year ago 82
C# Question

Validate an integer with a specific 0-65536 range in Regex C#

I am new to learning Regex and I have tried almost everything myself and from the internet to find a Regex that accepts values from 0 to 65536 and yes I want to do it by Regex only. The Closest I got was 69999.

Answer Source

Here it is:


See demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download