Xiaoven / codegex

A light-weight tools like spotbugs
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Self computation 优先级问题和正则 disjoint groups 带来的问题 #110

Closed Xiaoven closed 3 years ago

Xiaoven commented 3 years ago

目前的正则

(\b\w[\w.]*(?P<aux1>\((?:[^()]++|(?&aux1))*\))*)\s*([|^&-])\s*([\w.]+(?&aux1)*)

问题

由于正则匹配提取的是 disjoint groups, 会造成 False Negatives