I'm using netstat and lsof

`netstat -ap | grep java`;


tcp 0 0 *:bpjava *:* LISTEN -

Now $var4 = *:bpjava.

How do I keep only the : and anything after the :?

I can just take the * away but for safety in case it contains any other stuff I want to make sure it keeps only :name

Going to use it with lsof -i :bpjava

and lsof -i *:bpjava doesn't work