Hacker News new | past | comments | ask | show | jobs | submit login

why do people write regex in comments?

I see it from time to time and struggle to understand it




It's a concise notation for a type of editing drawn from an old Unix program called `sed`, which is still around in Unix's descendants (i.e., Linux).

In this case, GP suggests that GGP replace "effect" with "association".


Strangely they are using the global flag, even though there's only one instance to replace.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: