{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/188","repository_url":"https://api.github.com/repos/BurntSushi/ripgrep","labels_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/188/comments","events_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/188/events","html_url":"https://github.com/BurntSushi/ripgrep/issues/188","id":183897926,"number":188,"title":"Negative lookahead","user":{"login":"Mange","id":1599,"avatar_url":"https://avatars1.githubusercontent.com/u/1599?v=4","gravatar_id":"","url":"https://api.github.com/users/Mange","html_url":"https://github.com/Mange","followers_url":"https://api.github.com/users/Mange/followers","following_url":"https://api.github.com/users/Mange/following{/other_user}","gists_url":"https://api.github.com/users/Mange/gists{/gist_id}","starred_url":"https://api.github.com/users/Mange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mange/subscriptions","organizations_url":"https://api.github.com/users/Mange/orgs","repos_url":"https://api.github.com/users/Mange/repos","events_url":"https://api.github.com/users/Mange/events{/privacy}","received_events_url":"https://api.github.com/users/Mange/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-19T08:30:59Z","updated_at":"2018-04-17T21:33:45Z","closed_at":"2016-10-19T12:26:26Z","author_association":"NONE","body":"One area that makes `ag` unable to be replaced by `ripgrep` is that `ag` supports negative lookahead. For example:\n\n```\nag 'foo(?!.*bar)'\n```\n\nThis would find all rows with \"foo\", but not with \"bar\" somewhere after that on the same line.\n\n`ripgrep` gives the following error message:\n\n```\n› rg 'foo(?!.*bar)'\nError parsing regex near 'foo(?!.*ba' at character offset 5: Unrecognized flag: '!'. (Allowed flags: i, m, s, U, u, x.)\n```\n\nI guess this is actually a problem in the `regex` crate, and I can open the same issue there if you wish.\n"},"comment":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/comments/382154951","html_url":"https://github.com/BurntSushi/ripgrep/issues/188#issuecomment-382154951","issue_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/188","id":382154951,"user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars3.githubusercontent.com/u/456674?v=4","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":"2018-04-17T21:33:45Z","updated_at":"2018-04-17T21:33:45Z","author_association":"OWNER","body":"> Can you maybe give some more info on how to use the pipes with some examples\r\n\r\n`rg -i \"['\\\"]in['\\\"]\" | rg -v \"type=\"`\r\n\r\n> or maybe add the lookahead and lookbehind options?\r\n\r\nNo."}}
{"actor":{"display_login":"BurntSushi"}}