您可以使用此模式-(不适用于嵌套括号)
,(?![^()]*))
演示版
, # ","(?! # Negative Look-Ahead [^()] # Character not in [()] Character Class * # (zero or more)(greedy) # ) # End of Negative Look-Ahead)

您可以使用此模式-(不适用于嵌套括号)
,(?![^()]*))
演示版
, # ","(?! # Negative Look-Ahead [^()] # Character not in [()] Character Class * # (zero or more)(greedy) # ) # End of Negative Look-Ahead)