We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6033e2c commit c49e8b2Copy full SHA for c49e8b2
Regex and Parsing/Introduction to Regex Module.py
@@ -0,0 +1,8 @@
1
+# Introduction to Regex Module
2
+# https://www.hackerrank.com/challenges/introduction-to-regex/problem
3
+
4
+import re
5
+r = []
6
+for _ in range(int(input().strip())):
7
+ r.append(bool(re.match(r'^[-+]?[0-9]*\.[0-9]+$', input().strip())))
8
+print(*r, sep = '\n')
0 commit comments