Friends: (Revised question)
Thank you in advance for your time and attention.
import re
txt = "ear_name:zebra-wow-ear:-:4"
x = re.sub(".*:", "", txt,1)
print(x)
I was expecting the output to
zebra-wow-ear:-:4
removing
ear_name:
from
ear_name:zebra-wow-ear:-:4
but what I am getting is
4
What am I doing wrong ?
Please help.
-N