<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Noto Serif">From the top of my head,<br>
- cut the string on ".2012.720p."<br>
- change "</font>Zero.Dark.Thirty" to "Zero Dark Thirty "<br>
- change <font face="Noto Serif">".2012.720p." to "(2012-720p)"<br>
- change "</font>BrRip.x264.BOKUTOX.YIFY.mp4" to ".mp4"<br>
<br>
Or, <br>
- cut the string on "." (period)<br>
- loop through the substrings, and search for "2012" and/or
"720p"<br>
- reassemble parts<br>
-- <br>
William<br>
<br>
<br>
<div class="moz-cite-prefix">On 2024-12-31 11:22, John Driezen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:005ece1f-9092-4297-a653-29d8fb4c8da4@sympatico.ca">Can
anyone give me a regular expression to turn the following filename
<br>
<br>
"Zero.Dark.Thirty.2012.720p.BrRip.x264.BOKUTOX.YIFY.mp4"
<br>
<br>
into
<br>
<br>
"Zero Dark Thirty (2012)-720p.mp4"
<br>
<br>
201[0-9] matches the year
<br>
<br>
How do I match the title before the year, and ignore everything
after the ".720p"?
<br>
<br>
John Driezen
<br>
<br>
<br>
<br>
_______________________________________________
<br>
kwlug-disc mailing list
<br>
To unsubscribe, send an email to <a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc-leave@kwlug.org">kwlug-disc-leave@kwlug.org</a>
<br>
with the subject "unsubscribe", or email
<br>
<a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc-owner@kwlug.org">kwlug-disc-owner@kwlug.org</a> to contact a human being.
<br>
</blockquote>
<br>
</body>
</html>