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