Menu
First Git commit message: 'the stupid content tracker'
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
All Categories
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
2 months ago
399.2K views
0 shares
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
TECKNET Ergonomic Mouse, Wireless Bluetooth Vertical Mouse, 4800 DPI Optical Tracking, 6 Adjustable DPI, Quiet Clicks, 2.4GHz with USB A Receiver, 12 Months Battery, 6 Buttons, Wide Compatibility
Affiliate
$21.99
The Art Of Selective Documentation Retention
Testing
357.8K views
8 months ago
Most of them are red and black
Backend
22.8K views
3 years ago