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
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Regex
  3. Introduction
  4. Matching Start & End

Matching Start & End

Problem
Submissions
Leaderboard
Discussions
Editorial

The ^ symbol matches the position at the start of a string.


The $ symbol matches the position at the end of a string.

Task

You have a test string . Your task is to match the pattern
Here, denotes a word character, and denotes a digit.
must start with a digit and end with . symbol.
should be characters long only.

Note

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

Author

[deleted]

Difficulty

Easy

Max Score

5

Submitted By

55696

Need Help?


View discussions
View editorial
View top submissions

rate this challenge

MORE DETAILS

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