本文介绍了正则表达式/“正则表达式"中的正则是什么?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正则表达式"中的正则"是什么意思?
What does the "regular" in the phrase "regular expression" mean?
我听说正则表达式一次是常规的,但是没有更多了
I have heard that regexes were regular at one time, but no more
推荐答案
正则表达式中的正则来自与常规语言.
The regular in regular expression comes from that it matches a regular language.
形式语言理论中使用的正则表达式的概念与哪些引擎完全不同像 PCRE 一样调用正则表达式. PCRE和其他类似的引擎具有类似前瞻,条件和递归,这使它们能够匹配非常规语言.
The concept of regular expressions used in formal language theory is quite different from what engines like PCRE call regular expressions. PCRE and other similar engines have features like lookahead, conditionals and recursion, which make them able to match non-regular languages.
这篇关于正则表达式/“正则表达式"中的正则是什么?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!