in reply to string manipulation with arrays

Hi, theres something i did leave out...
The pings also have an actual ping number as well, next to the connector so it would look like this...
left1231:right1231 left1232:right4562 right1234:right4563 right7895:left4565 right7891:left1232

and i want the output to just have these number appended so it would look like...

1L1:1R1 1L2:2R2 1R4:2R3 3R5:2L5 3R1:1L2

Note that the connector name can be of different length and often do not start with left or right and have 3 digits after it.