{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/regex/issues/46","labels_url":"https://api.github.com/repos/rust-lang/regex/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/regex/issues/46/comments","events_url":"https://api.github.com/repos/rust-lang/regex/issues/46/events","html_url":"https://github.com/rust-lang/regex/issues/46","id":59409187,"number":46,"title":"[feature request] Feature to iterate over named groups","user":{"login":"havarnov","id":222012,"avatar_url":"https://avatars.githubusercontent.com/u/222012?v=3","gravatar_id":"","url":"https://api.github.com/users/havarnov","html_url":"https://github.com/havarnov","followers_url":"https://api.github.com/users/havarnov/followers","following_url":"https://api.github.com/users/havarnov/following{/other_user}","gists_url":"https://api.github.com/users/havarnov/gists{/gist_id}","starred_url":"https://api.github.com/users/havarnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havarnov/subscriptions","organizations_url":"https://api.github.com/users/havarnov/orgs","repos_url":"https://api.github.com/users/havarnov/repos","events_url":"https://api.github.com/users/havarnov/events{/privacy}","received_events_url":"https://api.github.com/users/havarnov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-01T17:48:59Z","updated_at":"2015-03-02T16:35:35Z","closed_at":null,"body":"It could be useful to be able to iterate over named groups from a regex capture.\r\n\r\nSomething like:\r\n\r\n```rust\r\nlet re = regex!(r\"(?P<id>\\d{2})(?P<name>\\w+)\");\r\nlet caps = re.captures(\"12david\").unwrap();\r\nfor (k, v) in caps.iter_named() {\r\n    println!(\"group name: {0}, value: {1}\", k, v);\r\n}\r\n```\r\n\r\nPS: I'm new to contributing the rust project and open source in general, so I'm sorry if I'm not following standard procedures."},"comment":{"url":"https://api.github.com/repos/rust-lang/regex/issues/comments/76745916","html_url":"https://github.com/rust-lang/regex/issues/46#issuecomment-76745916","issue_url":"https://api.github.com/repos/rust-lang/regex/issues/46","id":76745916,"user":{"login":"havarnov","id":222012,"avatar_url":"https://avatars.githubusercontent.com/u/222012?v=3","gravatar_id":"","url":"https://api.github.com/users/havarnov","html_url":"https://github.com/havarnov","followers_url":"https://api.github.com/users/havarnov/followers","following_url":"https://api.github.com/users/havarnov/following{/other_user}","gists_url":"https://api.github.com/users/havarnov/gists{/gist_id}","starred_url":"https://api.github.com/users/havarnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havarnov/subscriptions","organizations_url":"https://api.github.com/users/havarnov/orgs","repos_url":"https://api.github.com/users/havarnov/repos","events_url":"https://api.github.com/users/havarnov/events{/privacy}","received_events_url":"https://api.github.com/users/havarnov/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T16:35:35Z","updated_at":"2015-03-02T16:35:35Z","body":"Ok, but in that case shouldn't `iter()` also return `Option<Option<'& str>>`?"}}