Commit faa43228 authored by Florestan Biaux's avatar Florestan Biaux 💬
Browse files

Regex de la conversation

parent eef7149a
def get(nom):
import re
import string
def get(name):
# remove whitspaces
conv = name.replace(" ", "")
# lowercase
conv = conv.lower()
# regex _*
conv = conv + "_.*"
# return final conv name
return conv
import tri
import get
if __name__ == "__main__":
# demander le nom de la conv à analyser
name = input("Quel est le nom de la conversation à analyser ?")
# recuperer bonne conversation
conv = get.get(name)
\ No newline at end of file
# demander le nom de la conv à analyser
name = str(input("Quel est le nom de la conversation à analyser ?"))
# give regex of conversation name
conv = get.get(name)
print(conv)
\ 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