In this problem,I used Search Function in Re Module of Python but I'm Able to get the Span ID of the First Word Only
string2="Jhon is a good boy,Jhon is brilliant,Jhon is a data scientist,Jhon is Jhon"
m=re.search("Jhon",string2)
print(m)
I'm Getting Output Like This
<_sre.SRE_Match object; span=(0, 4), match='Jhon'>
This output(Span ID) is only for the first word,Please Tell Me Is there any way to find Span ID for All "Jhon"