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. Assertions
  4. Positive Lookahead

Positive Lookahead

Problem
Submissions
Leaderboard
Discussions
Editorial

The positive lookahead (?=) asserts regex_1 to be immediately followed by regex_2. The lookahead is excluded from the match. It does not return matches of regex_2. The lookahead only asserts whether a match is possible or not.

Task

You have a test string .
Write a regex that can match all occurrences of o followed immediately by oo in .

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

20

Submitted By

22003

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