PHP 最近放弃 [[:POSIX:]] 正则表达式风格的要点
在更高的 PHP 版本中删除 ereg 函数及其 POSIX 正则表达式风格?
阅读旧帖子“PHP ereg vs. preg”(2009 年 9 月) 对此感兴趣 - 并阅读官方 PHP 声明 我倾向于问这是关于什么的。随着 PHP 多年来的发展(并在 Perl 和 PHP 中进行了大量开发),我真的不确定这最终是否会是一个糟糕的漂移。
我假设 PHP 开发团队的一些成员在这里,因此他们能够帮助更深入地了解这一点。
是否有计划的增强功能(未来)来完成 [[:POSIX:]] 风格的 preg 函数?或者后者会永远消失吗?这两个决定背后的理由是什么?
Dropping of the ereg-functions and their POSIX-regular expression flavor in later PHP versions?
After reading the older posting "PHP ereg vs. preg" (Sep '09) concerned of this - and reading the official PHP statement I'm inclined to ask what this is about. Following the development of PHP over the years (and doing much development in Perl and PHP) I'm really unsure if this might be not a bad drift eventually.
I'd assume there would be some members of the PHP development team here on SO, therefore they'd able to help getting some more insight into this.
Are there planned enhancements (future) to complete the preg-functions with the [[:POSIX:]] style? Or will the latter be gone forever? What's the rationale behind either decision?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处查看最后一条评论之前的最后一条评论:http://bugs.php.net/49594
该线程上的其他评论还表明 PCRE 更快,语法更一致,并且也用于其他语言,例如 Ruby 或 Python。
You can check the last comment before the last here: http://bugs.php.net/49594
Also other comments on the thread suggest that PCRE is faster, more consistent in syntax and is used in other languages such as Ruby or Python too.