Bugs item #5450, was opened at 2006-08-17 23:06
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5450&group_id=426

Category: Core
Group: 1.8.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Nicola Piccinini (pic)
Assigned to: Nobody (None)
Summary: String#split includes match groups in result 

Initial Comment:
on a debian etch system:

pic@stakhanov:~$ ruby -v
ruby 1.8.4 (2005-12-24) [i486-linux]
pic@stakhanov:~$ irb
irb(main):001:0> 'en;q=0.4,it,ru-RU,ar;q=1.34,he'.split(/(;q=\d+\.\d+)?,/) => ["en", ";q=0.4", "it", "ru-RU", "ar", ";q=1.34", "he"]

Is this the intended behaviour?
Shouldn't the result be ["en", "it", "ru-RU", "ar", "he"] instead?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5450&group_id=426