Re: [问题] 怎抓到全部的()

楼主: vernc (cralvin)   2024-10-11 12:03:50
http://www.antp.be/software/renamer
email作者请他更新TRegExpr版本
经过一年时光(看记录是2023.12)回信了
那位帮忙测一下、看"negative lookahead" and "Recursion"等这些有没有问题
若想增加什么功能也可以说一声
Hi,
Better late than never, I took the time to make a build of Ant Renamer with a
newer version of TRegExpr, and fixing two small bugs at the same time.
If you are still interested, could you test if it works as intended with that
new version? As I'm not sure how to use these advanced regexp functionalities
:)
https://update.antp.be/renamer/antrenamer2121.zip
(simply replace the renamer.exe of your current install by that one)
If it works fine, I'll release that as version 2.12.1 or 2.13.0, depending if
I add or a new function to it in the next days.
作者: hunandy14 (Charlott.HonG)   2023-02-27 08:59:00
四年后的今天这种千古难题随便就能解了'\((?:[^()]+|\([^()]+\))*\)' 真是神奇\((?:[^()]*|\((?:[^()]*|\([^()]*\))*\))*\) 三层嵌套4层自己看着扩展继续写下去而已
作者: Bugzilla (Bugs everywhere)   2023-02-27 09:20:00
这不算千古难题吧,原文大家就提供解答了包含原原po想要的不限层数写法
作者: nfsong (圖書館我來了)   2023-03-02 00:36:00
chatGPT ?
作者: hunandy14 (Charlott.HonG)   2023-03-02 14:12:00
哦 我看到了原文有回了解法

Links booklink

Contact Us: admin [ a t ] ucptt.com