This is my first post on this forum and my very first attempt in Python. So forgive me if my answer is not to the point.
Code:
import re s=""" MyText (mymessage): 0 (Time 0 hours) MyText (mymessage): 344(Time 34 hours) MyText (mymessage):1000 (Time 2000 hours) """ patt = re.compile(r':[^0-9]*([0-9]+)[^0-9]+([0-9]+)')
Leave a comment: