5 ms·
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski
by qzw 5y ago
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
-- Jamie Zawinski
- bluepnume 5y agoI didn't spot any regexes here.
- qzw 5y agoMatching an exact string is also a valid regex, and I think the GP's simple attempt to use the substitution syntax illustrates JWZ's point even better than a more complex expression. There are so many ways of screwing it up that even a simple joke contained a bug.
- Banana699 5y agoThe notation s/<regex1>/<regex2> is perl for "replace every instance matching regex1 by regex2. Literal strings are regexes that match only themselves.
- deleted 5y ago[deleted]