In a file, I have the following lines
NetConn_msa[0].time=0.0
NetConn_msa[1].time=0.0 etc for 60 elements.
I need to write a script to change the time from 0.0 to 0.5.
I started with st.replace("delay=0.0","delay=0.05") and then tried to find the string to replace
sub=re.compile("\[\d+\]\.\w+=[0]\.[0]")
result=sub.search(st)
Can someone please help me since I am very new to programming. Thanks!