If you just want to filter the values (that might be what you mean by "sorted", it wasn't clear): list_b = buildString(pcreMatchList("^s" parseString(list_a ", ")) ", ") if you want them sorted too: list_b = buildString(sort(pcreMatchList("^s" parseString(list_a ", ")) 'alphalessp) ", ") The trick is to parse the string into a list, filter with a regular expression, sort (if needed) and build back into a string again. Andrew
↧