[Solved] Split a string with letters, numbers, and punctuation
[ad_1] A new approach since Java’s Regex.Split() doesn’t seem to keep the delimiters in the result, even if they are enclosed in a capturing group: Pattern regex = Pattern.compile( “[+-]? # Match a number, starting with an optional sign,\n” + “\\d+ # a mandatory integer part,\n” + “(?:\\.\\d+)? # optionally followed by a decimal part\n” … Read more