Question: In Python, str XG 0 1 = ' 2 0 2 0 - 0 7 - 2 2 1 5 : 0 9 :

"In Python,
str XG01='2020-07-2215:09:40 Status installiert linux-image-4.15.0-109-generic:amd644.15.0-109.110'
ndern Sie den folgenden Regex-Ausdruck:
m = re.search(r""installed ((.+):(.+)).*"", str)
print(""%d: %s""%(Zeilennummer, m.group(2)))
damit das Programm ausgibt:
22.07.2020: linux-modules-4.15.0-109-generic"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!