Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.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
.NET Regexp尝试获取所有可能的符号范围_.net_Regex - Fatal编程技术网

.NET Regexp尝试获取所有可能的符号范围

.NET Regexp尝试获取所有可能的符号范围,.net,regex,.net,Regex,我的regexp是 ((?<=(^)|([^\\](\\\\)*))(y{1,4})) ((?您可以使用锚,我认为您的正则表达式可以简化一点: ^(?<!\\)(?:\\\\)*(y{1,4}) ^(?)?

我的regexp是

((?<=(^)|([^\\](\\\\)*))(y{1,4}))

((?您可以使用锚,我认为您的正则表达式可以简化一点:

^(?<!\\)(?:\\\\)*(y{1,4})
^(?)?