作者vernc (cralvin)
看板RegExp
標題Re: [問題] 怎抓到全部的()
時間Fri Oct 11 12:03:50 2024
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.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.239.53.110 (臺灣)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/RegExp/M.1728619438.A.BB1.html
1F:→ hunandy14: 四年後的今天這種千古難題隨便就能解了 02/27 08:59
2F:→ hunandy14: '\((?:[^()]+|\([^()]+\))*\)' 真是神奇 02/27 08:59
3F:→ hunandy14: \((?:[^()]*|\((?:[^()]*|\([^()]*\))*\))*\) 三層嵌套 02/27 09:14
4F:→ hunandy14: 4層自己看著擴展繼續寫下去而已 02/27 09:15
5F:→ Bugzilla: 這不算千古難題吧,原文大家就提供解答了 02/27 09:20
6F:→ Bugzilla: 包含原原po想要的不限層數寫法 02/27 09:21
7F:→ nfsong: chatGPT ? 03/02 00:36
8F:→ hunandy14: 哦 我看到了原文有回了解法 03/02 14:12