'Can these regexes cause catastrophic backtracking? [duplicate]

I'm new to regexes. I am using these regexes throughout my android project. Can any of these cause the catastrophic backtracking?

To check for: at-least one Uppercase

"str".matches(".*[A-Z].*")

To check for: at-least one Lowercase

"str".matches(".*[a-z].*")

To check for: at-least one number

"str".matches(".*\\d{1,}.*")



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source