我想知道是否有软件可以在给定正则表达式以及其他一些约束(例如长度)的情况下生成始终与给定正则表达式匹配的随机文本。
谢谢
是的,可以生成与正则表达式随机匹配的软件:
-
Exrex https://github.com/asciimoo/exrex, Python
-
Pxeger https://www.npmjs.com/package/pxeger, JavaScript
-
正则表达式-genex https://github.com/audreyt/regex-genex,哈斯克尔
-
Xeger https://github.com/bluezio/xeger, Java
-
Xeger https://github.com/crdoconnor/xeger, Python
-
Generex https://github.com/mifmif/Generex, Java
-
rxrdg https://github.com/GoranSiska/rxrdg, C#
-
字符串::随机 http://search.cpan.org/~steve/String-Random-0.20/Random.pm, Perl
-
regldg https://regldg.com/, C
-
paggern https://github.com/gajus/paggern, PHP
-
反向正则表达式 https://github.com/icomefromthenet/ReverseRegex, PHP
-
兰德普.js https://fent.github.io/randexp.js/, JavaScript
-
EGRET https://github.com/elarsonSU/egret, Python/C++
-
MutRex https://github.com/fmselab/mutrex, Java
-
Fare https://github.com/moodmosaic/Fare, C#
-
rstr https://pypi.python.org/pypi/rstr/2.1.3, Python
-
randexp https://github.com/benburkert/randexp, Ruby
-
goregen https://github.com/zach-klippenstein/goregen, Go
-
bfgex https://github.com/six2six/bfgex, Java
-
regexgen https://github.com/arh23/regexgen, JavaScript
-
strgen https://github.com/paul-wolf/strgen, Python
-
随机字符串 https://github.com/moznion/java-random-string, Java
-
正则表达式展开文件夹 https://launchpad.net/regexp-unfolder, Clojure
-
字符串随机 https://hackage.haskell.org/package/string-random,哈斯克尔
-
rxrdg https://code.google.com/archive/p/rxrdg/, C#
-
正则表达式::Genex http://search.cpan.org/~bowmanbs/Regexp-Genex-0.07/lib/Regexp/Genex.pm, Perl
-
字符串生成器 https://pypi.python.org/pypi/StringGenerator/0.2.0, Python
-
strrand https://github.com/Songmu/strrand, Go
-
regen https://godoc.org/github.com/zach-klippenstein/goregen, Go
-
Rex https://www.microsoft.com/en-us/research/project/rex-regular-expression-exploration/, C#
-
正则表达式示例 https://github.com/tom-lord/regexp-examples, Ruby
-
genex.js https://github.com/alixaxel/genex.js, JavaScript
-
genex https://github.com/alixaxel/genex, Go
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)