extract substring after second last colon – CentOS
I am having a set of strings like this in a report field: cpe:/o:redhat:enterprise_linux:7 cpe:/o:centos:centos:7 I need to extract the words after the second last colon ":" ie.cpe:/o:centos:centos:7 -> should transform as centos:7 cpe:/o:redhat:enterprise_linux:7 -> should transform as enterprise_linux:7 There…