this post was submitted on 17 Mar 2026
421 points (99.8% liked)

Programmer Humor

30700 readers
1836 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] 9point6@lemmy.world 150 points 2 weeks ago (13 children)

I often assume this kind of thing is part of an effort to filter for idiots

If you know that's an invalid IP address, you're probably less likely to fall for the scam after the scammer has put the setup work in. So if they filter you out before a scammer has to spend any actual effort on you, that means more time they can spend scamming people who might be more likely to fall for it

That's why these things often have egregious spelling errors and other seemingly obvious red flags

[โ€“] zo0@programming.dev 73 points 2 weeks ago (5 children)

Just because I know what a valid IP is doesn't mean I'm not an idiot ๐Ÿ˜Ž

[โ€“] toynbee@piefed.social 16 points 2 weeks ago (3 children)

Let's see you write a regex for one, then we'll decide.

[โ€“] zitrone@europe.pub 2 points 1 week ago* (last edited 1 week ago) (1 children)

lemme try

(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}

tbh i have seen the stackoverflow solutions so i kinda know what i needed to do

this is entirely typed out from brain tho

[โ€“] toynbee@piefed.social 1 points 1 week ago

I'm currently on my phone and I'm not going to try to figure out how to test regex on Graphene. Therefore I can only say: well done!

load more comments (1 replies)
load more comments (2 replies)
load more comments (9 replies)