now we have two problems

翻了下别人推荐的一个正则网站 Regexper,看到有个副标题:You thought you only had two problems… 对这句话很是好奇。

很是 google 一番后,终于找到了出处:Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. —Jamie Zawinski

顿时泪流满面。

正则的恐怖在于写完后再看发现完全看不懂了,这就更加不用说去看别人的了,比如这个验证 email 的,看到时已经风中凌乱了。

7条评论

评论已关闭。