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 a4226f6 commit f6cd2daCopy full SHA for f6cd2da
Regex and Parsing/e.findall() & Re.finditer().py
@@ -0,0 +1,9 @@
1
+# Re.findall() & Re.finditer()
2
+# https://www.hackerrank.com/challenges/re-findall-re-finditer/problem
3
+
4
+import re
5
6
+a = re.findall(r'[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm]([AEIOUaeiou]{2,})(?=[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm])', input().strip())
7
+if a:
8
+ for e in a: print(e)
9
+else: print(-1)
0 commit comments