kotlin check if string contains numbers code example
Example 1: kotlin check if string contains
"AbBaCca".contains("bac", ignoreCase = true)
Example 2: kotlin string contains integer
str.matches(".*\\d.*");
"AbBaCca".contains("bac", ignoreCase = true)
str.matches(".*\\d.*");