728x90
์๋ฌธ, ์ซ์, ํน์ ๋ฌธ์๋ค๋ก ๊ตฌ์ฑ๋ ๋น๋ฐ๋ฒํธ์ธ์ง ํ์ธํ๊ธฐ
import re
password = raw_input("Enter string to test: ")
if re.fullmatch(r'[A-Za-z0-9!@#$%^&+=]{8,}', password):
# match
else:
# no match
์ถ์ฒ:
https://stackoverflow.com/questions/2990654/how-to-test-a-regex-password-in-python
How to test a regex password in Python?
Using a regex in Python, how can I verify that a user's password is: At least 8 characters Must be restricted to, though does not specifically require any of: uppercase letters: A-Z lowercase let...
stackoverflow.com
728x90
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ํ์ด์ฌ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ์ด์ฌ - pyinstaller์ RecursionError : maximum recursion depth exceeded ์ค๋ฅ ํด๊ฒฐ ๋ฐฉ๋ฒ (0) | 2023.03.08 |
---|---|
ํ์ด์ฌ - ์ธ์ ๋ง๋ฃ ์๊ฐ ๊ฒ์ฆํ๊ธฐ (0) | 2023.02.03 |
ํ์ด์ฌ - ์ฌ๋ผ์ด์ค(Slice) (0) | 2022.10.06 |
ํ์ด์ฌ - Range ๋ฒ์ (0) | 2022.10.06 |
ํ์ด์ฌ - APScheduler ์ค์ผ์ค (0) | 2022.09.12 |