(groovy) I have a string like "1.2.3" and I have to extract the substring before the last "." for example "1.2" . I tried some split('.'), tokenize('.'), but they don't work.
(groovy) I have a string like "1.2.3" and I have to extract the substring before the last "." for example "1.2" . I tried some split('.'), tokenize('.'), but they don't work.