how to find if a string contains zero anywhere using regex code example Example: check if string contains numbers str.matches(".*\\d.*");