{"action":"created","issue":{"url":"https://api.github.com/repos/kkos/oniguruma/issues/37","repository_url":"https://api.github.com/repos/kkos/oniguruma","labels_url":"https://api.github.com/repos/kkos/oniguruma/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/kkos/oniguruma/issues/37/comments","events_url":"https://api.github.com/repos/kkos/oniguruma/issues/37/events","html_url":"https://github.com/kkos/oniguruma/issues/37","id":194460501,"number":37,"title":"ONIG_OPTION_FIND_LONGEST both interprets regex to be greedy and skips shorter matches, need to only be greedy but not skip","user":{"login":"yurivict","id":271906,"avatar_url":"https://avatars.githubusercontent.com/u/271906?v=3","gravatar_id":"","url":"https://api.github.com/users/yurivict","html_url":"https://github.com/yurivict","followers_url":"https://api.github.com/users/yurivict/followers","following_url":"https://api.github.com/users/yurivict/following{/other_user}","gists_url":"https://api.github.com/users/yurivict/gists{/gist_id}","starred_url":"https://api.github.com/users/yurivict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurivict/subscriptions","organizations_url":"https://api.github.com/users/yurivict/orgs","repos_url":"https://api.github.com/users/yurivict/repos","events_url":"https://api.github.com/users/yurivict/events{/privacy}","received_events_url":"https://api.github.com/users/yurivict/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T22:22:06Z","updated_at":"2016-12-09T14:59:27Z","closed_at":null,"body":"Current behavior of ONIG_OPTION_FIND_LONGEST causes two effects:\r\n* regex is matched in a \"greedy\" way (the longest possible match is found at every location)\r\n* shorter matches are skipped by onig_match, so that it returns only the longest matches (multiples are allowed)\r\n\r\nI need it to not skip anything, but match in a greedy fashion. Is this currently possible?\r\nIf this is not possible, I would like to suggest to split ONIG_OPTION_FIND_LONGEST into two new options: ONIG_OPTION_GREEDY and ONIG_OPTION_ONLY_LONGEST. It's best to be able to specify different bits of behavior separately.\r\n"},"comment":{"url":"https://api.github.com/repos/kkos/oniguruma/issues/comments/266033592","html_url":"https://github.com/kkos/oniguruma/issues/37#issuecomment-266033592","issue_url":"https://api.github.com/repos/kkos/oniguruma/issues/37","id":266033592,"user":{"login":"kkos","id":884169,"avatar_url":"https://avatars.githubusercontent.com/u/884169?v=3","gravatar_id":"","url":"https://api.github.com/users/kkos","html_url":"https://github.com/kkos","followers_url":"https://api.github.com/users/kkos/followers","following_url":"https://api.github.com/users/kkos/following{/other_user}","gists_url":"https://api.github.com/users/kkos/gists{/gist_id}","starred_url":"https://api.github.com/users/kkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkos/subscriptions","organizations_url":"https://api.github.com/users/kkos/orgs","repos_url":"https://api.github.com/users/kkos/repos","events_url":"https://api.github.com/users/kkos/events{/privacy}","received_events_url":"https://api.github.com/users/kkos/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T14:59:27Z","updated_at":"2016-12-09T14:59:27Z","body":"I can't image the \"regex is matched in a \"greedy\" way\" or ONIG_OPTION_GREEDY.\r\nIs it different from a regex  which does not include any non-greedy operators."}}
{"actor":{"display_login":"kkos"}}