as Dan has suggested, this is best done on the db level,
using your db's
built-in string manipulation functions. most databases has an
array of
these functions you can use, like SUBSTR() or SUBSTRING() or
STRING_INDEX() etc etc - check you db manual for correct
function to
use. then you query sql would look something like:
SELECT somecolumn, SUBSTR(somecolumn, ) AS somealias
FROM sometable
you could also get your desired output at output time using
CF's
string/list functions like listlast():