Extract information from seg line