You could replace this crazy `sed` regex with `awk '{ print $2 }'`.