{"action":"created","issue":{"url":"https://api.github.com/repos/kkos/oniguruma/issues/12","repository_url":"https://api.github.com/repos/kkos/oniguruma","labels_url":"https://api.github.com/repos/kkos/oniguruma/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/kkos/oniguruma/issues/12/comments","events_url":"https://api.github.com/repos/kkos/oniguruma/issues/12/events","html_url":"https://github.com/kkos/oniguruma/issues/12","id":167764957,"number":12,"title":"Questions","user":{"login":"esdoppio","id":18070858,"avatar_url":"https://avatars.githubusercontent.com/u/18070858?v=3","gravatar_id":"","url":"https://api.github.com/users/esdoppio","html_url":"https://github.com/esdoppio","followers_url":"https://api.github.com/users/esdoppio/followers","following_url":"https://api.github.com/users/esdoppio/following{/other_user}","gists_url":"https://api.github.com/users/esdoppio/gists{/gist_id}","starred_url":"https://api.github.com/users/esdoppio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esdoppio/subscriptions","organizations_url":"https://api.github.com/users/esdoppio/orgs","repos_url":"https://api.github.com/users/esdoppio/repos","events_url":"https://api.github.com/users/esdoppio/events{/privacy}","received_events_url":"https://api.github.com/users/esdoppio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-27T03:55:50Z","updated_at":"2016-08-15T06:59:41Z","closed_at":null,"body":"Hi @kkos, I want to create a wiki page for this, just to make sure I get right. :)\r\n\r\n* Outside character classes, characters that must be escaped to be used literally are:\r\n\r\n  `^$.?*+()[\\|`\r\n\r\n* In character classes, characters that must be escaped to be used literally are:\r\n\r\n  `^-]\\` (please correct me if I get it wrong)\r\n\r\n  `^` and `-` can get away with this by \"clever placement.\"\r\n\r\nWhat really confuses me is `[` and `]` in character classes (though I think they both should be escaped for clarity):\r\n\r\n* In Ruby 2.3, `[` must be escaped in classes and unescaped `]` raises warnings but is allowed.\r\n* But in some other implementation (Atom) that use Oniguruma, `[` can be used unescaped in classes but `]` can't. 😂 \r\n* In POSIX, `]` can be used literally by placing it at the start of a class. In Oniguruma, it can't, right?"},"comment":{"url":"https://api.github.com/repos/kkos/oniguruma/issues/comments/239740643","html_url":"https://github.com/kkos/oniguruma/issues/12#issuecomment-239740643","issue_url":"https://api.github.com/repos/kkos/oniguruma/issues/12","id":239740643,"user":{"login":"esdoppio","id":18070858,"avatar_url":"https://avatars.githubusercontent.com/u/18070858?v=3","gravatar_id":"","url":"https://api.github.com/users/esdoppio","html_url":"https://github.com/esdoppio","followers_url":"https://api.github.com/users/esdoppio/followers","following_url":"https://api.github.com/users/esdoppio/following{/other_user}","gists_url":"https://api.github.com/users/esdoppio/gists{/gist_id}","starred_url":"https://api.github.com/users/esdoppio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esdoppio/subscriptions","organizations_url":"https://api.github.com/users/esdoppio/orgs","repos_url":"https://api.github.com/users/esdoppio/repos","events_url":"https://api.github.com/users/esdoppio/events{/privacy}","received_events_url":"https://api.github.com/users/esdoppio/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T06:59:41Z","updated_at":"2016-08-15T06:59:41Z","body":"Thanks for your replies. They really helped me a lot!\r\n\r\nSo similarly, in UTF-8 encoding, `\\d` can match stuff specified in `CR_Digit[]`, right? And can I assume `[0-9_A-Za-z]` is \"faster\" than `\\w` in UTF-8?\r\n\r\nDo you mind if I help edit the doc of RE? It would just be some small refinements to make it easier to understand."}}
{"actor":{"display_login":"esdoppio"}}