loop through all values of listbox

loop through all values of listbox

Hi,
 
I have a listbox which has multiple values.
 
Values are seperated by a pipe symbol ( | ) .
 
example: tAM|t |t |t36|tPM |t |t37
 
How to loop through the listbox and get the values "AM" and "PM"
 
Thanks