This commit is contained in:
= 2023-11-12 18:41:46 +01:00
parent 36a76b8559
commit 8b35883eaa
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Anna: 987 65
Karol: 456-78
Zbyszek: 53252525342252
Tytus: aaaa666432
https://git.wmi.amu.edu.pl/
"""
wzorzec = re.compile(r"(https|http):\/\/(www.)?[\d\w]+\.\w+[^.]*")

View File

@ -3,7 +3,8 @@ import re
tekst = """
asdasdas9@asSd
as@d@asjdioajsd7y7asdSa1
dioajsd7y7asdSa1
"""
wzorzec = re.compile(r"(?=.*[a-z])(?=.*[A-Z])(?=.*[\d])(?=.*[@#$%&*!]).{8,}")
print(f'Numery: {wzorzec.findall(tekst)}')
print(f'{wzorzec.findall(tekst)}')