anyone have a regex filter for reddit filenames?/g/ and their sqt aren't helping so we do it like this
>>1509026Can you give some examples of reddit filenames?
>>1509026>reddit filenameswhat?
>>1509037not OP, but here are a few:kc6aynbs8tbe17yjawszl5ube1.pngg0ml5v4b5pbe1.pngj5t8dd3ydnbe1.pngq75muhncnsyd1.jpegauxx88unbr6d1.jpegm2qf2e9q2r4d1.jpegpv9kmpc3ttbe1.jpegpiySeo9.pngYXfRryB.png
>>1509039thank you, that's generally what I mean>>1509037>>1509038pictures saved from reddit have a set pattern, same goes for how 4chan saves it images (right now it's 173...... and when the latest number reaches it goes to 174....... I don't remember exactly what it was but it had to do with a certain time system how every image uploaded follows). the pattern for reddit is always a set amount, but letters and numbers differ. I suck at regex and can never get filters to work otherwise I would do it myselfI want it because every time an OP opens with a reddit filename, it's of zero worth. I hope to filter out such OP's. it's baffling that /g/ isn't helping
>>1509041Unix timestamp.
>>1509043yeah that one thanks
>>1509041>set patternLooks like a-z0-9 read right to left: 8ck616yacube1 is a recent filename, while g0ml5v4b5pbe1.png is older, so next would be ....dube1 .... eube1 etc. A month ago they ended in d1.A general regex would filter too many 12 character names, but maybe just current month?/^[0-9A-Z]{10}e1/i;boards:pol;op:only;
>>1509048cool thanks so much>polit's actually for /v/, I already have 70 posts filtered at any time so a few more can't hurt
>>1509048>>1509050change 10 to 11, I miscounted, they're 13 character names. So, for last two months:/^[0-9A-Z]{11}d1/i;boards:v;op:only;/^[0-9A-Z]{11}e1/i;boards:v;op:only;
>>1509053no problem, thanks for the correction.I've been thinking. for the following months I could just keep going one letter up as in; f1, g1, h1 and so on?or I could remove the letter+1 combo and just make the 11 into a 12? knowing that I'm gonna filter out a lot more filenames, even filenames not from reddit
It's pretty difficult to filter it out without filtering regular stuff.Any filter that would catch >>1509039 examples would almost certainly also catch reactionimage3.png also.We can tell it's pseudorandom gibberish, regex can't.
>>1509055ah okay I see well I'm already happy with what I have so it's no biggie
>>1509056You could always use a negative lookahead to ensure the first x characters aren't all alphabetical, so something like this:/^(?![A-Z]{11})[A-Z0-9]{11}[de]1/i;boards:v;op:only;
>>1509057I get the explanation but have no idea how the filter works, anyways that's also very appreciatedI'm going to sleep now but I'm grateful for the help