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.
Regex_Pattern = r"(?<=[13579])\d" # Do not delete 'r'.
import re
Test_String = input()
match = re.findall(Regex_Pattern, Test_String)
print("Number of matches :",
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Positive Lookbehind
You are viewing a single comment's thread. Return to all comments →