kotlin string contains integer code example Example: kotlin string contains integer str.matches(".*\\d.*");