forked from miczar1/DJFZ-2023
lab-2
This commit is contained in:
parent
36a76b8559
commit
8b35883eaa
@ -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+[^.]*")
|
||||
|
@ -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)}')
|
Loading…
Reference in New Issue
Block a user