[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19414] Re: [] 内での \001 のマッチ

From: UENO Katsuhiro <unnie@...>
Date: 2003-01-22 08:22:15 UTC
List: ruby-dev #19414
うえのです。

On Wed, 22 Jan 2003 17:14:24 +0900
UENO Katsuhiro <unnie@blue.sky.or.jp> wrote:

>   修正前:
>     p "\xc2\x80".scan(/\200/u)  # => ["\302\200"]
>     p "\xc4\x80".scan(/\400/u)  # => ["\304\200"]
>   修正後:
>     p "\xc2\x80".scan(/\200/u)  # => []
>     p "\xc4\x80".scan(/\400/u)  # => []

間違えました。正しくは

修正前:
  p "\xc2\x80".scan(/[\200]/u)  # => ["\302\200"]
  p "\xc4\x80".scan(/[\400]/u)  # => ["\304\200"]
修正後:
  p "\xc2\x80".scan(/[\200]/u)  # => []
  p "\xc4\x80".scan(/[\400]/u)  # => []

です。

なお、[] が無い場合は修正にかかわらずマッチしません。

  p "\xc2\x80".scan(/\200/u)  # => []
  p "\xc4\x80".scan(/\400/u)  # => []


 --  ----  -     - - -- -
うえの かつひろ <unnie@blue.sky.or.jp>

In This Thread