Skip to content

Commit c8e5184

Browse files
Create Parsing and Extracting.py
1 parent 334f62a commit c8e5184

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Parsing and Extracting.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data = "From [email protected] Sat Jan 5 09:14:16:2008"
2+
atpos = data.find("@")
3+
print(atpos)
4+
sppos = data.find(' ', atpos)
5+
print(sppos)
6+
host = data[atpos + 1:sppos]
7+
print(host)

0 commit comments

Comments
 (0)