Help me fix Python Regular expression line

I have a 32 line program that finds repeated license keys. It works fine. I want to add a line that makes sure that any line that is not a license key is discarded. I am therefore trying to write a regular expression something like this

pat=[login to view URL]('([A-Z0-9]{4}-A-Z0-9]{4}-A-Z0-9]{4}-A-Z0-9]{4}')

e.g. 2YKH-G73D-WGTE-D2UR

if [login to view URL] (pat,i)

m=[login to view URL](pat,i)


so the program will have only one or two lines more than the original

Taidot: Python, Regular Expressions

Näytä lisää: python regex replace, python re.findall example, python re.compile example, python re.sub example, python regex extract, python regex example, python 3 regex, python regex test, regular expression extract phone number, regular expression examples extract data, regular expression freelance, extract data html page regular expression, help fix code, asp regular expression, str_replace regular expression, regular expression html extract table, sms message regular expression php, regular expression java python search engine , regular expression python date, python regular expression date

Tietoa työnantajasta:
( 167 arvostelua ) Hong Kong, Hong Kong

Projektin tunnus: #17699586

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi I am a qualified python developer with 8 years of professional experience. I am interested in this project and can start the work right now. Looking forward to hearing from you soon. Best Regards, Yongta Lisää

$17 USD 10 päivässä
(74 arvostelua)

Hi, Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have got Rich experience in Jooml Lisää

$13 USD 7 päivässä
(0 arvostelua)
$17 USD 10 päivässä
(0 arvostelua)
$15 USD 2 päivässä
(0 arvostelua)