Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谁有把RegExp翻译成“的算法?”;自然语言;?_Regex - Fatal编程技术网

谁有把RegExp翻译成“的算法?”;自然语言;?

谁有把RegExp翻译成“的算法?”;自然语言;?,regex,Regex,我想把正则表达式“翻译”成可读的解释 例如:/^[a-z0-9}{6,18}/将被翻译成如下内容: 一个字符串以6到18个字符开始,范围从A到z,从0到9,并且是一个免费的工具,可以做到这一点(而且做得很好) 使用(但我认为这是最好的工具),表达式记录如下: // ^[a-z0-9_]{6,18} // // Options: ^ and $ match at line breaks // // Assert position at the beginning of a line (at b

我想把正则表达式“翻译”成可读的解释

例如:
/^[a-z0-9}{6,18}/
将被翻译成如下内容:

一个字符串以6到18个字符开始,范围从A到z,从0到9,并且是一个免费的工具,可以做到这一点(而且做得很好)

使用(但我认为这是最好的工具),表达式记录如下:

// ^[a-z0-9_]{6,18}
// 
// Options: ^ and $ match at line breaks
// 
// Assert position at the beginning of a line (at beginning of the string or after a line break character) «^»
// Match a single character present in the list below «[a-z0-9_]{6,18}»
//    Between 6 and 18 times, as many times as possible, giving back as needed (greedy) «{6,18}»
//    A character in the range between “a” and “z” «a-z»
//    A character in the range between “0” and “9” «0-9»
//    The character “_” «_»
该工具还允许您在文档中选择一行,并在正则表达式中显示零件


我知道有些人在提出正则表达式方面有多么独创,我不会屏住呼吸。@aix True。但可能使用文档工具,他们可能只编写更好的表达式;)。下面所有的解决方案都是针对Windows的,有人有Linux或Mac工具吗?