15 ms·
>What algorithm would you suggest to find the year in an arbitrary submission? In the submission title, a simple regex for the presence of a date with a standa
by coldtea 2y ago
>What algorithm would you suggest to find the year in an arbitrary submission?
In the submission title, a simple regex for the presence of a date with a standard format (e.g. %Y) would suffice.
Matching it to the article might or might not be possible, but that would already be enough (assuming having the date is a good thing, which I'm not certain at all)