Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[a-zA-Z0-9\-\.]+\.(com|org|net|mil|edu|COM|ORG|NET|MIL|EDU)$
|
Description |
Domain names:
This regular expression tests the validity of a domain or hostname. It will match any valid domain name that does not contain characters which are invalid in URLs, and which ends in .com, .org, .net, .mil, or .edu. You can add additional valid TLDs by appending the | (pipe) character and the desired TLD to the list in the parens.
|
Matches |
3SquareBand.com | asp.net | army.mil
|
Non-Matches |
$SquareBand.com | asp/dot.net | army.military
|
Author |
Rating:
Not yet rated.
G. Andrew Duthie
|
Title |
Test
Details
Pattern Title
|
Expression |
^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$
|
Description |
RegExp for validating the format of IP Addresses. This works great with the ASP.NET RegularExpressionValidator server control.
|
Matches |
127.0.0.1 | 255.255.255.0 | 192.168.0.1
|
Non-Matches |
1200.5.4.3 | abc.def.ghi.jkl | 255.foo.bar.1
|
Author |
Rating:
G. Andrew Duthie
|
Displaying page
of
pages;
Items to