repl.it
@rpat/

PythonRegex

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
import re


txt = "ugiuvik{fdsfgsdfsdfd\n{ giukm} ksdfsdfds} "
x = re.search(r'{(.\n*)*}', txt)
print(x.group(0))
if (x):
  print("YES! We have a match!")
else:
  print("No match")
Fetching token
?