We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Regex
  3. Repetitions
  4. Matching Zero Or More Repetitions

Matching Zero Or More Repetitions

Problem
Submissions
Leaderboard
Discussions
Editorial

The * tool will match zero or more repetitions of character/character class/group.

For Example:

w* : It will match the character w or more times.
[xyz]* : It will match the characters x, y or z or more times.
\d* : It will match any digit or more times.


Task

You have a test string .
Your task is to write a regex that will match using the following conditions:

  • should begin with or more digits.
  • After that, should have or more lowercase letters.
  • should end with or more uppercase letters

Note

This is a regex only challenge. You are not required to write any code.
You have to fill the regex pattern in the blank (_________).

Author

[deleted]

Difficulty

Easy

Max Score

20

Submitted By

36060

Need Help?


View discussions
View editorial
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy