From: Michael Selig Date: 2008-12-03T09:30:31+09:00 Subject: [ruby-core:20229] Re: \b and \B with Unicode On Wed, 03 Dec 2008 11:06:55 +1100, Rados��aw Bu��at wrote: > On Wed, Dec 3, 2008 at 12:46 AM, Dave Thomas wrote: >> #encoding: utf-8 >> p " ���og ".match(/\b./u) # => # >> >> >> I was surprised that \b didn't find the boundary between the space and >> the >> Unicode ��� character. Is that correct? > > Maybe ��� isn't treat as word character? > " ���og ".match(/\w/) => # > I don't know if it should or not. > The character in question is Unicode U+2202 which is "Partial Differential". Though it looks like it might be a letter, it is NOT defined as a letter in Unicode (it is part of the "mathematical operators" block). So I think Ruby is correct here! Cheers Mike