其他
This tool can generate random strings from a regular expression.
Let's take a look:
$ ./regxstr 5 "^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.\1){3}$"250.250.250.250213.213.213.2134.4.4.4118.118.118.1182.2.2.2
I wish you understand the above regular expression, which means an IP address with 4 same dot parts.
Tool regxstr can recognize the pattern, and generate random strings that match the given regular expression.
regxstring can do more things. You can try more complex regular expressions. Basically, most Perl 5 supported regular expressions are supported by regxstring, as in the bellow list:
| Meta-character(s) | Description |
|:----------------------|:----------------|
| \` | Quote the next meta-character ||
^| Match the beginning of the line ||
$| Match the end of the line (or before n
暂无评论