From: Yukihiro Matsumoto Date: 2006-08-18T08:47:46+09:00 Subject: Re: [ ruby-Bugs-5450 ] String#split includes match groups in result Hi, In message "Re: [ ruby-Bugs-5450 ] String#split includes match groups in result" on Fri, 18 Aug 2006 06:07:01 +0900, writes: |Summary: String#split includes match groups in result |Is this the intended behaviour? Yes. |Shouldn't the result be ["en", "it", "ru-RU", "ar", "he"] instead? It's inherited from Perl. Use (?: ) grouping. matz.