{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3761","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3761/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3761/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3761/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3761","id":57351167,"number":3761,"title":"Support named groups in match","user":{"login":"AtnNn","id":706854,"avatar_url":"https://avatars.githubusercontent.com/u/706854?v=3","gravatar_id":"","url":"https://api.github.com/users/AtnNn","html_url":"https://github.com/AtnNn","followers_url":"https://api.github.com/users/AtnNn/followers","following_url":"https://api.github.com/users/AtnNn/following{/other_user}","gists_url":"https://api.github.com/users/AtnNn/gists{/gist_id}","starred_url":"https://api.github.com/users/AtnNn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtnNn/subscriptions","organizations_url":"https://api.github.com/users/AtnNn/orgs","repos_url":"https://api.github.com/users/AtnNn/repos","events_url":"https://api.github.com/users/AtnNn/events{/privacy}","received_events_url":"https://api.github.com/users/AtnNn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:ReQL_proposal","name":"tp:ReQL_proposal","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/98","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.1-polish","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/98/labels","id":1040593,"number":98,"title":"2.1-polish","description":"","creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":3,"state":"open","created_at":"2015-03-26T19:14:40Z","updated_at":"2015-04-23T18:47:32Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-11T17:50:00Z","updated_at":"2015-04-23T23:30:25Z","closed_at":null,"body":"RE2 regular expressions support named groups, but these names are ignored by RethinkDB. currently `r.expr(\"foobar\").match(\"(?P<name>b.)(.)\")` returns\r\n\r\n```\r\n{\r\n    \"end\": 5 ,\r\n    \"groups\": [\r\n        {\r\n            \"end\": 5 ,\r\n            \"start\": 3 ,\r\n            \"str\": \"ba\"\r\n        },\r\n        {\r\n            \"end\": 6 ,\r\n            \"start\": 5 ,\r\n            \"str\": \"r\"\r\n        } \r\n    ] ,\r\n    \"start\": 3 ,\r\n    \"str\": \"ba\"\r\n}\r\n```\r\n\r\nIt would be nice if the `groups` property was an object instead:\r\n\r\n```\r\n    \"groups\": {\r\n        \"name\": {\r\n            \"end\": 5 ,\r\n            \"start\": 3 ,\r\n            \"str\": \"ba\"\r\n        },\r\n        \"1\": {\r\n            \"end\": 6 ,\r\n            \"start\": 5 ,\r\n            \"str\": \"r\"\r\n        } \r\n    }\r\n```\r\n\r\nThis would make dealing with large regular expressions a lot easier.\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/95746893","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3761#issuecomment-95746893","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3761","id":95746893,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T23:30:25Z","updated_at":"2015-04-23T23:30:25Z","body":"> \"what if someone names one of his groups the same number as one of the offsets of an unnamed group\"? I guess we could just detect that and error.\r\n\r\nThat sounds reasonable."}}