gpt4 book ai didi

regex - emacs:是否可以使用emacs regex将具有平衡括号的字符串匹配?

转载 作者:行者123 更新时间:2023-12-04 03:41:18 25 4
gpt4 key购买 nike

像这样的东西:
http://perl.plover.com/yak/regex/samples/slide083.html

换句话说,我想成功匹配{ { foo } { bar} }而不匹配{ { foo }

我认为在perl and in .NET中是可能的。 emacs正则表达式中可能吗?

最佳答案

不,到目前为止,Perl/PCRE和.NET是仅有的支持任意嵌套(递归模式)的regex风格。

关于regex - emacs:是否可以使用emacs regex将具有平衡括号的字符串匹配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2704728/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com