Which regular expression would match any string that contains 4 consecutive zeros?
- [0-4]
- 0{4}
- {0-4}
- ^0000
Explanation & Hint: The regular expression 0{4} matches any string that contains 4 repetitions of zero or 4 consecutive zeros. |
Explanation & Hint: The regular expression 0{4} matches any string that contains 4 repetitions of zero or 4 consecutive zeros. |