From: "naruse (Yui NARUSE)" Date: 2012-12-17T11:49:58+09:00 Subject: [ruby-core:50932] [ruby-trunk - Bug #7566] Escape (\u{}) forms in Regexp literals Issue #7566 has been updated by naruse (Yui NARUSE). brixen (Brian Ford) wrote: > Are you saying you can represent \b as a \u{} escape sequence in a Regexp? No. (1) \b (word boundary), \s (spaces and tabs) and so on are can't expressed as bytes (2) so escapes are not converted to bytes, kept as is (3) \u{} is also escape, so kept as is ---------------------------------------- Bug #7566: Escape (\u{}) forms in Regexp literals https://bugs.ruby-lang.org/issues/7566#change-34787 Author: brixen (Brian Ford) Status: Rejected Priority: Normal Assignee: Category: core Target version: 2.0.0 ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0] Why are \u{} escape sequences in Regexp literals not converted to bytes like they are in String literals? https://gist.github.com/4290155 Thanks, Brian -- http://bugs.ruby-lang.org/