(city = 'pune' AND country = 'india') OR (division = 'it') AND (resource = 'someresource' )
これを括弧に応じてグループに分けたいと思います。
グループ1-(city = 'pune' AND country = 'india')
グループ2-(division = 'it')
グループ3-(resource = 'someresource' )
誰かがJavaの例の正規表現を提供できますか?