get substring with between parenthesis using regrex

view full story

http://stackoverflow.com – I have a bunch of lines as below: PING planetlab2.tau.ac.il ( 56(84) bytes of data. I want to obtain the ip addresses from these lines, which are between the first ( and ) pair how to get it using linux regrex? like sed, grep, blabla thanks! (HowTos)