[Solved] Java Regex to get only words [closed]


String[] values = input.replaceAll("^[.,\\s]+", "").split("[.,\\s]+");

Original Source: Split a string with arbitrary number of commas and spaces

3

solved Java Regex to get only words [closed]