Tool: the regulator (ver2.0.3.0)
For more information, see the help provided. It is very simple and easy to use. (^ You do not need to write small ones yourself Program )
We recommend a web page to search for regular expressions, which is a good place.
Http://regexlib.com/
Sample:
The following is a regular expression for verifying IP addresses:
Title: |
Pattern title |
[Details] [test] |
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: |
.5.4.3 | ABC. Def. Ghi. jkl | 255. Foo. bar.1 |
|
Author: |
G. Andrew duthie |
Rating: |