This Challange is to test the logic of re.start() and re.end() in HackerRank.
start() & end()
These expressions return the indices of the start and end of the substring matched by the group.
Code
import re
m = re.search(r'\d+','1234')
m.end()
4
m.start()
0
=============================================================
Join :
/ jagwithyou
/ jagwithyou
https://github.com/jagwithyou
#CompetitiveProgramming #TWP
On this page of the site you can watch the video online re.start & re.end - Regular Expressions - HackerRank - #12 - Python Practice Examples with a duration of hours minute second in good quality, which was uploaded by the user Interview Coder 09 May 2020, share the link with friends and acquaintances, this video has already been watched 753 times on youtube and it was liked by 7 viewers. Enjoy your viewing!