Hacker News new | ask | show | jobs
by tester756 1440 days ago
why do people write regex in comments?

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

1 comments

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.