{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/125","labels_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/125/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/125/events","html_url":"https://github.com/rust-lang-nursery/regex/issues/125","id":115270074,"number":125,"title":"Allow accessing meta info for capture groups","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang-nursery/regex/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/rust-lang-nursery/regex/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-05T12:03:54Z","updated_at":"2015-11-05T16:26:20Z","closed_at":null,"body":"When using user-supplied regexes, I need information about the only dynamic property of those regexes: the number and names of capture groups.\r\n\r\nThis is useful to allow users to e.g. specify a subset of possible groups."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/comments/154111967","html_url":"https://github.com/rust-lang-nursery/regex/issues/125#issuecomment-154111967","issue_url":"https://api.github.com/repos/rust-lang-nursery/regex/issues/125","id":154111967,"user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars.githubusercontent.com/u/456674?v=3","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T16:26:20Z","updated_at":"2015-11-05T16:26:20Z","body":"@flying-sheep The modus operandi in Rust is to not make choices that impose unavoidable costs on the caller when possible. Returning `&[Option<String>]` is free, which is pretty compelling IMO.\r\n\r\nHappy to hear more thoughts though!"}}