RonSijm@programming.dev to Programmer Humor@programming.dev · 5 days agoThis Phishing email... What is the IP?programming.devimagemessage-square74linkfedilinkarrow-up1449arrow-down11
arrow-up1448arrow-down1imageThis Phishing email... What is the IP?programming.devRonSijm@programming.dev to Programmer Humor@programming.dev · 5 days agomessage-square74linkfedilink
minus-squarezo0@programming.devlinkfedilinkEnglisharrow-up76·5 days agoJust because I know what a valid IP is doesn’t mean I’m not an idiot 😎
minus-squaretoynbee@piefed.sociallinkfedilinkEnglisharrow-up16·5 days agoLet’s see you write a regex for one, then we’ll decide.
minus-squarezitrone 🍋@europe.publinkfedilinkarrow-up1·40 minutes agolemme 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
minus-squareJasonDJ@lemmy.ziplinkfedilinkarrow-up6·5 days agoWhy would anyone want to do that when there are dozens on stackoverflow?
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up3·5 days agoThat’s not the probability they are looking for.
Just because I know what a valid IP is doesn’t mean I’m not an idiot 😎
Let’s see you write a regex for one, then we’ll decide.
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
Why would anyone want to do that when there are dozens on stackoverflow?
That’s not the probability they are looking for.