This code didn't return anything. however, the last sample data output I have provided was the grep I did against the file and I just copied with your generated output.
I agree with what you indicated using substr as oppose to regex.
what I need to know if need to implement this within the script as another sub how can i do that. please get back to me.