I would like to extract all the values separated by comma(,
) after matching with pattern.
So first I am matching my string with regex and then using Matcher
to extract values.
Regex= \(([^)]+)\)
is matching correctly following string without any issue .
('A', '36254632546', 0, 'Test, test1', NULL)
But unable to match when string convert(datetime, 'Dec 27 2016 10:36:54', 116)
is available in original string. I tried matching last )
by putting $
at the end but seems not working.
String to match = ('A', convert(datetime, 'Dec 27 2016 10:36:54', 116), 0, 'Test, test1', NULL)