{"action":"created","issue":{"url":"https://api.github.com/repos/dryabov/phpregexp/issues/4","labels_url":"https://api.github.com/repos/dryabov/phpregexp/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dryabov/phpregexp/issues/4/comments","events_url":"https://api.github.com/repos/dryabov/phpregexp/issues/4/events","html_url":"https://github.com/dryabov/phpregexp/issues/4","id":71987458,"number":4,"title":"Empty group/unclosed group with non-capturing group","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T20:53:55Z","updated_at":"2015-04-30T19:13:47Z","closed_at":null,"body":"**Code sample:**\r\n\r\n```php\r\nif (preg_match('/^.*(?:\\.htm)$/i', $fn)) {\r\n    $isHtml = true;\r\n}\r\n```\r\n\r\n**IDE:**\r\n\r\n![](http://i.imgur.com/wTga7QC.png)\r\n\r\n![](http://i.imgur.com/4S0QWw6.png)\r\n\r\n**[Regex101](https://regex101.com/r/yA8xW7/1) output:**\r\n\r\n![](http://i.imgur.com/JIMCK9f.png)\r\n\r\nAs far as I'm aware, the regex is valid. It works in production & when testing locally. Am I doing something wrong or is this a bug?"},"comment":{"url":"https://api.github.com/repos/dryabov/phpregexp/issues/comments/97932703","html_url":"https://github.com/dryabov/phpregexp/issues/4#issuecomment-97932703","issue_url":"https://api.github.com/repos/dryabov/phpregexp/issues/4","id":97932703,"user":{"login":"dryabov","id":378044,"avatar_url":"https://avatars.githubusercontent.com/u/378044?v=3","gravatar_id":"","url":"https://api.github.com/users/dryabov","html_url":"https://github.com/dryabov","followers_url":"https://api.github.com/users/dryabov/followers","following_url":"https://api.github.com/users/dryabov/following{/other_user}","gists_url":"https://api.github.com/users/dryabov/gists{/gist_id}","starred_url":"https://api.github.com/users/dryabov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dryabov/subscriptions","organizations_url":"https://api.github.com/users/dryabov/orgs","repos_url":"https://api.github.com/users/dryabov/repos","events_url":"https://api.github.com/users/dryabov/events{/privacy}","received_events_url":"https://api.github.com/users/dryabov/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T19:13:47Z","updated_at":"2015-04-30T19:13:47Z","body":"Regex is valid.\r\n\r\nWhat version of PhpStorm do you use? (I have 8.0.3 and there is no \"Empty group\" or \"Unclosed group\" inspection errors for your code snippet.) Do you use a 3rdparty regex inspection plugin?"}}