{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/4207","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4207/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4207/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4207/events","html_url":"https://github.com/elixir-lang/elixir/pull/4207","id":127029965,"number":4207,"title":"Implemented option :include_captures in Regex.split/3","user":{"login":"druzn3k","id":1090201,"avatar_url":"https://avatars.githubusercontent.com/u/1090201?v=3","gravatar_id":"","url":"https://api.github.com/users/druzn3k","html_url":"https://github.com/druzn3k","followers_url":"https://api.github.com/users/druzn3k/followers","following_url":"https://api.github.com/users/druzn3k/following{/other_user}","gists_url":"https://api.github.com/users/druzn3k/gists{/gist_id}","starred_url":"https://api.github.com/users/druzn3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druzn3k/subscriptions","organizations_url":"https://api.github.com/users/druzn3k/orgs","repos_url":"https://api.github.com/users/druzn3k/repos","events_url":"https://api.github.com/users/druzn3k/events{/privacy}","received_events_url":"https://api.github.com/users/druzn3k/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-16T14:54:22Z","updated_at":"2016-01-17T09:35:30Z","closed_at":"2016-01-17T09:35:26Z","pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4207","html_url":"https://github.com/elixir-lang/elixir/pull/4207","diff_url":"https://github.com/elixir-lang/elixir/pull/4207.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/4207.patch"},"body":"Closes issue #4203. Not the prettiest implementation, but it does work. Any suggestion on how to make it better, please?"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/172305026","html_url":"https://github.com/elixir-lang/elixir/pull/4207#issuecomment-172305026","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4207","id":172305026,"user":{"login":"druzn3k","id":1090201,"avatar_url":"https://avatars.githubusercontent.com/u/1090201?v=3","gravatar_id":"","url":"https://api.github.com/users/druzn3k","html_url":"https://github.com/druzn3k","followers_url":"https://api.github.com/users/druzn3k/followers","following_url":"https://api.github.com/users/druzn3k/following{/other_user}","gists_url":"https://api.github.com/users/druzn3k/gists{/gist_id}","starred_url":"https://api.github.com/users/druzn3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druzn3k/subscriptions","organizations_url":"https://api.github.com/users/druzn3k/orgs","repos_url":"https://api.github.com/users/druzn3k/repos","events_url":"https://api.github.com/users/druzn3k/events{/privacy}","received_events_url":"https://api.github.com/users/druzn3k/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T09:35:30Z","updated_at":"2016-01-17T09:35:30Z","body":"@RobertDober, no, it doesn't imply `include_captures: true`, it depends on **how** one wrote the regex. If you use a subexpression like `([abc])`it includes the result, otherwise not. This is the relevant part in the documentation:\r\n\r\n> If subexpressions are given in the regular expression, the matching subexpressions are returned in the resulting list as well.\r\n\r\nThis will break half of the tests on the `Regex` alone and a lot of dependent modules. If someone wrote the regex using `(_)` the behaviour will change, breaking the application in a subtle way (wrong data on output), silently failing. It could potentially be a disaster."}}