Home
Sign Up
Sign In
›
正则表达式可视化调试 regex101.com
V2EX
›
正则表达式
正则表达式如何截取一个完整括号的内容
ccjy778899
·
Jun 29, 2023
· 4018 views
This topic created in 1224 days ago, the information mentioned may be changed or developed.
如何用正则表达式验证获取以下计算过程中的第一个 计算元素:Sum(avg ( col1 )+avg ( col2 ))+sum(a1+a2) 。返回:Sum ( avg ( col1 )+avg ( col2 ))
注意,我函数可以随意嵌套。
问过 gpt ,给不出答案。
avg
SUM
col2
col1
4 replies
•
2023-06-29 20:12:31 +08:00
brader
Jun 29, 2023
1
正则表达式我也没想出来,不过用程序处理我有思路
leonshaw
Jun 29, 2023
2
好像不能用 FSM 表达出来
NoOneNoBody
Jun 29, 2023
1
3
搜递归正则,需要语言的正则模块支持,如 python 内置的 re 不支持,需要三方包
yumusb
Jun 29, 2023
1
4
Sum(avg(col1+avg(col2))+sum(a1+a2)
\w+\(.*\)[^)]
https://img.lu/upload/d5b60a55dddb6efb8b332.png
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1495 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 96ms ·
UTC 22:39
·
PVG 06:39
·
LAX 14:39
·
JFK 17:39
♥ Do have faith in what you're doing.
❯