Regex match digits, comma and semicolon? September 5, 2023 by Tarik You almost have it, you just left out 0 and forgot the quantifier. word.matches("^[0-9,;]+$")