JRuby regex support for "\G" is different than MRI
--------------------------------------------------
Key: JRUBY-1046
URL: http://jira.codehaus.org/browse/JRUBY-1046
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC2
Environment: svn rev 3795
Reporter: Steve Shreeve
Priority: Minor
This code performs differently in MRI than JRuby:
regx = /\G(\w+): +(\w+)(\r\n)+/
data = "Name: Foobar\r\nAge: 35\r\nWeight: 180\r\nHair: brown\r\n\r\n"
data.scan(regx) {|k,v| p [k,v]}
Another person on irc also noted:
lopex: this doesnt work either: "abc" =~ /\G(.*)/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email