I have this string 1,2,3,4,5
and say i remove 1 then it becomes ,2,3,4,5 or 1,2,,4,5
how do I remove "1," or any number from the list and replace those extra commas and also keep in mind the last number "5" doesnt have a comma.
I can use the string replace javascript function , I am more concerned with the last number
example if i remove 5 it should show as 1,2,3,4
:foo:bar:
. That has 2 fields if colon-delimited, 3 fields if colon-terminated, and 4 fields if colon-separated. We're programmers: don't get sloppy.