perl -pe 's/.*:CPONKT:(.*)/$1/;' # or perl -pe 's/.*?:CPONKT:(.*)/$1/;'# first one if ':CPONKT:' # is seen several times