diff --git a/eight_letter_words.py b/eight_letter_words.py new file mode 100644 index 0000000..3a89fb5 --- /dev/null +++ b/eight_letter_words.py @@ -0,0 +1,17 @@ +import re +paragraph=""" + Without, the night was cold and wet, but in the small parlour of Laburnum villa + the blinds were drawn and the fire burned brightly. Father and son were at chess; + the former, who possessed ideas about the game involving radical chances, putting + his king into such sharp and unnecessary perils that it even provoked comment from + the white-haired old lady knitting placidly by the fire. "Hark at the wind," said Mr. White, + "who, having seen a fatal mistake after it was too late, was amiably desirous of preventing + his son from seeing it. I'm listening," said the latter grimly surveying the board as he stretched out his hand. + "Check." I should hardly think that he's come tonight," said his father, with his hand poised over the board. + "Mate," replied the son. "That's the worst of living so far out," balled Mr. White with sudden and unlooked-for + violence; "Of all the beastly, slushy, out of the way places to live in, this is the worst. Path's a bog, and the + road's a torrent. I don't know what people are thinking about. I suppose because only two houses in the road are + let, they think it doesn't matter. + """ +eight_letter_words = list(filter(lambda x:len(x) == 8, re.findall('[a-zA-Z]+', paragraph))) +print(eight_letter_words) diff --git a/email_addresses.py b/email_addresses.py new file mode 100644 index 0000000..9122c42 --- /dev/null +++ b/email_addresses.py @@ -0,0 +1,11 @@ +import re +metin = """ + The advencements in biomarine studies franky@google.com with the investments + necessary and Davos sinatra123@yahoo.com Then New Yorker article on wind farms... + """ +liste = metin.split() +for i in liste: + sonuc = re.search("(\w+).+com.?$",i) + if sonuc: + print(sonuc.group(1)) + diff --git a/id_number.py b/id_number.py new file mode 100644 index 0000000..0981c3e --- /dev/null +++ b/id_number.py @@ -0,0 +1,14 @@ +import re +hidden_text= "AEGTV5VZ4PF94B6YH678,AABZA1111AEGTV5YH678MK4FM53B6" +for i in hidden_text.split(): + id_number = re.findall("[A-Z]+\d[A-Z]+\d+[A-Z]\d",i) + if id_number: + print(id_number) + + + + + + + +