From: Kazuo Saito Date: 2003-04-08T04:02:30+09:00 Subject: [ruby-dev:19971] Re: How do we parse Regular Expressions in our brain? 斉藤@訳した本人です。 > 例えば、/[%--abc-]/ の最後の - はエスケープすべきでしょうか? > > /[%--abc-]/ の最後の - を > > A literal '-' in a character class should be escaped too > if the class has other '-' literals for range representation. > > という定義と照らし合わせて、 > > A literal '-' in a character class should be escaped too > ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ > 最後の - [%--abc-] > > if the class has other `-' literals for range representation. > ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ > [%--abc-] 2番目の - %-- > > と対応させて解釈すると、最後の - はエスケープすべきとなるんですが、そ > うなんでしょうか? 私は、そう訳していますね。反応もそう返ってきていますね。 #他人事っぽいのは、訳すときに全部考えられなかったから。 別にキレているわけじゃなく(笑)、むしろ「こういう意味なんだよー」と いっていただければ「ソーリー俺の誤訳でさー(ちょっと広川太一郎風)」と 連絡しますので、お氣遣いなく連絡ください。 Kazuo Saito