Commit d342dc85 authored by Wahram Andrikyan's avatar Wahram Andrikyan
Browse files

Update regex.py

parent 0b55b12a
......@@ -3,4 +3,8 @@ import re
txt = open("file.txt", "r")
x = re.findall("regex", txt.read())
print(x)
\ No newline at end of file
print(x)
# edit file2 additionally
with open("file2.txt", "w") as file:
file.write(str(x))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment