Regex: match only outside parenthesis (so that the text isn’t split within parenthesis)?

,(?![^(]*\))

You can use this to split.See demo.This holds true as u said there are no nested ().

https://regex101.com/r/wV5bD0/1

Leave a Comment