{"action":"created","issue":{"url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/5","labels_url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/5/comments","events_url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/5/events","html_url":"https://github.com/gherkins/regexpbuilderphp/issues/5","id":59064315,"number":5,"title":"Exact digits matching","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T12:19:43Z","updated_at":"2015-02-26T12:24:30Z","closed_at":"2015-02-26T12:24:30Z","body":"I'm trying to match expression with exactly 10 digits. Maybe I don't understand it correctly, so here is my example:\r\n\r\n```php\r\n$regExp = (new RegExpBuilder)->exactly(10)->digits()->getRegExp();\r\n\r\nvar_dump($regExp->test(123456789)); // should: FALSE, is FALSE\r\nvar_dump($regExp->test(1234567890)); // should: TRUE, is TRUE\r\nvar_dump($regExp->test(12345678901)); // should: FALSE, is TRUE\r\n```\r\n\r\nHow to achieve my goal?"},"comment":{"url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/comments/76169505","html_url":"https://github.com/gherkins/regexpbuilderphp/issues/5#issuecomment-76169505","issue_url":"https://api.github.com/repos/gherkins/regexpbuilderphp/issues/5","id":76169505,"user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T12:24:30Z","updated_at":"2015-02-26T12:24:30Z","body":"Lagged"}}