isDigitsAndSeparatorsOnly

fun isDigitsAndSeparatorsOnly(value: String, vararg separators: Char): Boolean

Check if the string only contains number and the specified separator characters.

Return

If the string is only numbers and separators.

Parameters

value

The string to be checked.

separators

The optional accepted separators.