[kwlug-disc] Fwd: Regular Expression to Match Movie Titles and Year and Ignore the rest.

Ronald Barnes ron at ronaldbarnes.ca
Wed Jan 1 07:40:05 EST 2025


John Driezen wrote on 2025-01-01 01:25:

> newfile = movietitle+" ("+year+")-"+resolution+"."+ext

You may be easier for legibility / maintenance to use "f-strings" for 
this formatting & concatenating, à la:

 > newfile = f"{movietitle} ({year})-{resolution}.{ext}"



Just a thought...




More information about the kwlug-disc mailing list