I need to select the substring of a text from an given keyword. For example
Str= 'book, painting'
I need to get output like ', painting'
So i gave regular expression like (•*)(\, •*) and collect group2 as an output.
But if the input is
Str= 'book, painting, instrument'
I am getting ', instrument' as an output but i should get ', painting, instrument'.
(•*?)(\, •*)