We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e48792 commit 034f5c1Copy full SHA for 034f5c1
code3/re12.py
@@ -1,4 +1,4 @@
1
-# Search for lines that start with 'Details: rev='
+# Search for lines that start with 'Details: rev='
2
# followed by numbers and '.'
3
# Then print the number if it is greater than zero
4
import re
@@ -8,4 +8,3 @@
8
x = re.findall('^Details:.*rev=([0-9.]+)', line)
9
if len(x) > 0:
10
print(x)
11
-
0 commit comments