From: matz@... Date: 2016-01-18T05:55:14+00:00 Subject: [ruby-core:72896] [Ruby trunk - Feature #11949] Allow @/$ prefix in Regexp's named captures Issue #11949 has been updated by Yukihiro Matsumoto. It should be fixed,I think,without assignment behavior. Matz. ---------------------------------------- Feature #11949: Allow @/$ prefix in Regexp's named captures https://bugs.ruby-lang.org/issues/11949#change-56129 * Author: Masahiro Nakagawa * Status: Open * Priority: Normal * Assignee: ---------------------------------------- fluentd hits the problem that Regexp's named captures doesn't allow @ prefix. https://github.com/treasure-data/omnibus-td-agent/issues/60 I assume this limitation is for auto variable assign feature. http://ruby-doc.org/core-2.3.0/Regexp.html#class-Regexp-label-Capturing In fluentd, there is no auto assign use case so we want to use @/$ prefix. @ is used for Elastic related products and $ is used for MongoDB. Currently, we need to add extra routine to convert foo to @foo / $foo after parsed the data. It makes performance slower and causes complicated configuration. I'm not sure the best approach but we want command line option or something to allow @/$ prefix in named captures. -- https://bugs.ruby-lang.org/ Unsubscribe: