Logo
Code quality metric: WTFs per minute.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Data-redaction Memes

Posts tagged with Data-redaction

Find First And Last Name Using Reg Ex

Programming Debugging Backend Security
3 months ago 418.7K views 0 shares
Find First And Last Name Using Reg Ex
You craft a beautiful regex to extract first and last names for data redaction, test it on "Truman Donovan" and feel like a genius. Then you deploy it to production and discover it's also happily matching "Jeffrey Epstein" in email headers. Oops. The regex is doing exactly what you asked—finding patterns that look like names—but it has zero concept of context. It can't tell the difference between "data that needs redacting" and "email metadata that absolutely should not be touched." Your regex doesn't care about your intentions; it just sees `\b(word)\b` and goes ham. The real kicker? That monstrosity of a regex pattern `(?=.+\b(don\w+|d\.?)\b)(?=.+\b(truman)\b).*` with 15 matches and 874 steps is probably still missing edge cases like "O'Brien" or "José García" while simultaneously nuking your email headers. Classic regex overconfidence meets reality.

Today's picks

Cascading Binary Code Poster - Glowing Laptop Wireframe Art - Gloss Paper Finish - Decor for Developer Workspaces

Cascading Binary Code Poster - Glowing Laptop Wireframe Art - Gloss Paper Finish - Decor for Developer Workspaces

Affiliate
$21.95
Trick or Treat..

Trick or Treat..

Programming
75.1K views 2 years ago
The Faces Of Coding

The Faces Of Coding

C++
456.1K views 1 year ago