dragon-book-exercise-answers icon indicating copy to clipboard operation
dragon-book-exercise-answers copied to clipboard

I modify three places in 3.3.5-3, in 3.3md

Open iaxax opened this issue 7 years ago • 1 comments

origin answer: /*([^"]|"."|*+[^/])*/ 1.add \ in [^"], i.e, [^"] -> [^*"] 2.remove * after [^"], i.e, [^"]* -> [^"] 3.add (*) before the last occurrence of / so, my answer is /*([^*"]|"."|*+[^/])(*)*/

following is my reason: 1.modification 1 is for more concise answer 2.modification 2 is the appending * is unnecessary 3.modification 3 is because that the origin answer can't match /***/, which is correct

iaxax avatar Jun 18 '17 12:06 iaxax

Can't match /**/ image

JiaChen-Zeng avatar Oct 07 '17 13:10 JiaChen-Zeng