String[] result = Pattern.compile("\\s*,\\s*").split(", one, two , ,, 3"); ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl