From: nobu.nokada@... Date: 2002-03-25T03:11:33+09:00 Subject: Re: Unicode in Regexp (a question) Hi, At Mon, 25 Mar 2002 02:37:45 +0900, Sean Russell wrote: > > I guess you may need UTF-8 string not but RE. > > > > puts /\A([^<]*)/u.match("K\xc3\xb6ln")[0] > > No, say I want to specifically match the character 0x0531... how do I > specify that in the regular expression? IE, does the following do what I'd > expect it to do? > > re = /\x05\x31/u If you mean U+0531, use a string once. re = /#{"\xe3\x84\x85"}/uo Multibyte literal in RE is pending too. -- Nobu Nakada