3 ms·
I give up. I have to know why this works. Please, tell me.
by mabbo 5y ago
I give up. I have to know why this works. Please, tell me.
- tptacek 5y agoThe regex `[b]anana` matches the string "banana". But it does not match the literal string `[b]anana` --- to match that, you'd need something like `\[b\]anana`. The literal string `[b]anana` is what shows up in the process table for grep, and so it doesn't match.
- mabbo 5y agoOoooooh, that's brilliant. You've made the self reference no longer a self reference.