[MacRuby] #1018: Regexp compilation error
#1018: Regexp compilation error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.8 Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- $ macirb irb(main):001:0> pattern = /(?<test>Ruby|Perl)/ => SyntaxError: (irb):1: regexp `(?<test>Ruby|Perl)' compilation error: U_REGEX_RULE_SYNTAX irb(main):002:0> -- Ticket URL: <http://www.macruby.org/trac/ticket/1018> MacRuby <http://macruby.org/>
#1018: Regexp compilation error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.8 => Old description:
$ macirb
irb(main):001:0> pattern = /(?<test>Ruby|Perl)/
=> SyntaxError: (irb):1: regexp `(?<test>Ruby|Perl)' compilation error: U_REGEX_RULE_SYNTAX
irb(main):002:0>
New description: $ macirb irb(main):001:0> pattern = /(?<test>Ruby|Perl)/ => SyntaxError: (irb):1: regexp `(?<test>Ruby|Perl)' compilation error: U_REGEX_RULE_SYNTAX irb(main):002:0> -- Comment: It looks like CRuby behaves the same? {{{ $ ruby -e "re=/(?<test>Ruby|Perl)/" -e:1: undefined (?...) sequence: /(?<test>Ruby|Perl)/ }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:1> MacRuby <http://macruby.org/>
#1018: Regexp compilation error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Comment(by tglee@…): Just in Macruby 0.8! $ macruby -e "p MACRUBY_VERSION, MACRUBY_REVISION" "0.8" "svn revision 4962 from http://svn.macosforge.org/repository/ruby/MacRuby/trunk" $ macruby -e "pattern = /(?<test>Ruby|Perl)/" ==> -e:1: regexp `(?<test>Ruby|Perl)' compilation error: U_REGEX_RULE_SYNTAX -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:2> MacRuby <http://macruby.org/>
#1018: Regexp compilation error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): Ah, that's a Ruby 1.9 named capture. MacRuby doesn't support named captures at the moment. -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:3> MacRuby <http://macruby.org/>
#1018: Regexp compilation error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Comment(by tglee@…): Replying to [comment:3 lsansonetti@…]:
Ah, that's a Ruby 1.9 named capture. MacRuby doesn't support named captures at the moment.
Thanks for your quick response ! -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:4> MacRuby <http://macruby.org/>
#1018: Regexp compilation error: named captures ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: Screening for 1.0. -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:5> MacRuby <http://macruby.org/>
#1018: Regexp compilation error: named captures ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Comment(by tglee@…): ~#762 -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:6> MacRuby <http://macruby.org/>
#1018: Regexp compilation error: named captures ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Regexp ----------------------------+----------------------------------------------- Comment(by leothompson@…): The <a href="http://goodfinance-blog.com/topics/personal-loans">personal loans</a> suppose to be very useful for guys, which want to ground their career. In fact, this is very easy to get a bank loan. -- Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:7> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby