{"action":"created","issue":{"url":"https://api.github.com/repos/svent/sift/issues/44","labels_url":"https://api.github.com/repos/svent/sift/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/svent/sift/issues/44/comments","events_url":"https://api.github.com/repos/svent/sift/issues/44/events","html_url":"https://github.com/svent/sift/issues/44","id":116823025,"number":44,"title":"Feature request: --not-in-match=PATTERN","user":{"login":"LarryBattle","id":288263,"avatar_url":"https://avatars.githubusercontent.com/u/288263?v=3","gravatar_id":"","url":"https://api.github.com/users/LarryBattle","html_url":"https://github.com/LarryBattle","followers_url":"https://api.github.com/users/LarryBattle/followers","following_url":"https://api.github.com/users/LarryBattle/following{/other_user}","gists_url":"https://api.github.com/users/LarryBattle/gists{/gist_id}","starred_url":"https://api.github.com/users/LarryBattle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarryBattle/subscriptions","organizations_url":"https://api.github.com/users/LarryBattle/orgs","repos_url":"https://api.github.com/users/LarryBattle/repos","events_url":"https://api.github.com/users/LarryBattle/events{/privacy}","received_events_url":"https://api.github.com/users/LarryBattle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-13T18:30:10Z","updated_at":"2015-11-15T04:11:10Z","closed_at":null,"body":"## Feature Request:\r\nIt would be great to have an option to where you could filter the matches based on if they don't match a pattern. Negative lookahead support could solve this problem but golang doesn't support it natively. \r\n\r\n### Option:\r\n-E, --not-in-match=PATTERN  Return matches that don't contain the submatch\r\n\r\n### Examples\r\n#### Content of testFile.txt\r\n\r\n    1: <input type=\"button\" class=\"btn\">\r\n    2: <input class=\"btn\">\r\n\r\n#### Command\r\n\r\n    sift -e \"<input [^>]+>\" -E \" type=\" ./testFile.txt\r\n\r\n#### Output:\r\n\r\n    testFile.txt \r\n    2: <input class=\"btn\">\r\n\r\n### Pseudo Code\r\n\r\n    matches.filter(x => !(not_in_match_pattern).test(x))"},"comment":{"url":"https://api.github.com/repos/svent/sift/issues/comments/156778318","html_url":"https://github.com/svent/sift/issues/44#issuecomment-156778318","issue_url":"https://api.github.com/repos/svent/sift/issues/44","id":156778318,"user":{"login":"LarryBattle","id":288263,"avatar_url":"https://avatars.githubusercontent.com/u/288263?v=3","gravatar_id":"","url":"https://api.github.com/users/LarryBattle","html_url":"https://github.com/LarryBattle","followers_url":"https://api.github.com/users/LarryBattle/followers","following_url":"https://api.github.com/users/LarryBattle/following{/other_user}","gists_url":"https://api.github.com/users/LarryBattle/gists{/gist_id}","starred_url":"https://api.github.com/users/LarryBattle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarryBattle/subscriptions","organizations_url":"https://api.github.com/users/LarryBattle/orgs","repos_url":"https://api.github.com/users/LarryBattle/repos","events_url":"https://api.github.com/users/LarryBattle/events{/privacy}","received_events_url":"https://api.github.com/users/LarryBattle/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T04:11:10Z","updated_at":"2015-11-15T04:11:10Z","body":"Yup, both of those worked. \r\nI guess I just didn't understand how ` --not-surrounded-within` and ` --surrounded-within` worked exactly."}}