From c127f189539595af46816a245437680174c6e9b3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 13 Nov 2025 13:15:40 +0700 Subject: [PATCH] first commit --- Read file text/script.py | 6 ++++++ Read file text/text.txt | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 Read file text/script.py create mode 100644 Read file text/text.txt diff --git a/Read file text/script.py b/Read file text/script.py new file mode 100644 index 0000000..c77197c --- /dev/null +++ b/Read file text/script.py @@ -0,0 +1,6 @@ +import re + +text = "Email: admin@example.com" +pattern = r"^Email.\s(.*@.*)" +match = re.search(pattern, text) +print(match.group(1)) diff --git a/Read file text/text.txt b/Read file text/text.txt new file mode 100644 index 0000000..e38a1d7 --- /dev/null +++ b/Read file text/text.txt @@ -0,0 +1,4 @@ +asd +asdasf +asfafasa +asfafasa \ No newline at end of file