{"action":"created","issue":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1998","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1998/labels{/name}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1998/comments","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1998/events","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1998","id":124597292,"number":1998,"title":"Regexp: Improvements!","user":{"login":"GuiltyDolphin","id":8598426,"avatar_url":"https://avatars.githubusercontent.com/u/8598426?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiltyDolphin","html_url":"https://github.com/GuiltyDolphin","followers_url":"https://api.github.com/users/GuiltyDolphin/followers","following_url":"https://api.github.com/users/GuiltyDolphin/following{/other_user}","gists_url":"https://api.github.com/users/GuiltyDolphin/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiltyDolphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiltyDolphin/subscriptions","organizations_url":"https://api.github.com/users/GuiltyDolphin/orgs","repos_url":"https://api.github.com/users/GuiltyDolphin/repos","events_url":"https://api.github.com/users/GuiltyDolphin/events{/privacy}","received_events_url":"https://api.github.com/users/GuiltyDolphin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-02T16:11:39Z","updated_at":"2016-01-02T20:33:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1998","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1998","diff_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1998.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1998.patch"},"body":"Which of these do you prefer?\r\n\r\n![screenshot from 2016-01-02 16 08 13](https://cloud.githubusercontent.com/assets/8598426/12075062/27a350a4-b16b-11e5-8357-05cbec136a9e.png)\r\n\r\n**OR**\r\n\r\n![screenshot from 2016-01-02 16 10 16](https://cloud.githubusercontent.com/assets/8598426/12075067/60f293e2-b16b-11e5-9720-dfaad6aa7008.png)\r\n\r\n\r\nYeah, I thought so. The first one is clearly superior ;)\r\n\r\n**WIP**, I've got some things to sort out.\r\n\r\n## To-do\r\n\r\n- [x] Support Perl-style matching (`foo =~ /foo/`).\r\n- [x] Improve ordering of results (full match first, numbered matches in order etc...).\r\n- [ ] Ensure that the Goodie won't try and compute really complex regexes (maybe time limit or just detect complexity?). \r\n- [x] Support basic modifiers (ignore case, for example).\r\n- [ ] Expand key width a bit - named captures are wrapping too early.\r\n\r\n### Bugs\r\n\r\n- [x] Matches like `regexp /foo/ foo` will allocate `1` to the first numbered match.\r\n- [ ] Uppercases the named captures (i.e, `Named Capture <x>` becomes `Named Capture <X>`).\r\n\r\n---\r\n[IA Page](https://duck.co/ia/view/regexp)"},"comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/comments/168426572","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1998#issuecomment-168426572","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1998","id":168426572,"user":{"login":"jagtalon","id":81969,"avatar_url":"https://avatars.githubusercontent.com/u/81969?v=3","gravatar_id":"","url":"https://api.github.com/users/jagtalon","html_url":"https://github.com/jagtalon","followers_url":"https://api.github.com/users/jagtalon/followers","following_url":"https://api.github.com/users/jagtalon/following{/other_user}","gists_url":"https://api.github.com/users/jagtalon/gists{/gist_id}","starred_url":"https://api.github.com/users/jagtalon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagtalon/subscriptions","organizations_url":"https://api.github.com/users/jagtalon/orgs","repos_url":"https://api.github.com/users/jagtalon/repos","events_url":"https://api.github.com/users/jagtalon/events{/privacy}","received_events_url":"https://api.github.com/users/jagtalon/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T20:33:56Z","updated_at":"2016-01-02T20:33:56Z","body":"@GuiltyDolphin clearly the first one is best. :)\r\n\r\nI'm excited! Ping us when you're ready."}}