为什么没有正则表达式标准? [英] Why isn't there a regular expression standard?

查看:42
本文介绍了为什么没有正则表达式标准?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 perl 正则表达式是一个次要的事实上的标准,但为什么没有人提出一套通用的标准符号、语法和行为?

I know there is the perl regex that is sort of a minor de facto standard, but why hasn't anyone come up with a universal set of standard symbols, syntax and behaviors?

推荐答案

与 POSIX 相关的 IEEE.真正的问题是为什么不是每个人都遵循它"?答案可能是它在贪婪匹配方面不如 PCRE 复杂.

There is a standard by IEEE associated with the POSIX effort. The real question is "why doesn't everyone follow it"? The answer is probably that it is not quite as complex as PCRE with respect to greedy matching and what not.

这篇关于为什么没有正则表达式标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆