{"action":"created","issue":{"url":"https://api.github.com/repos/justinrainbow/json-schema/issues/219","labels_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/219/comments","events_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/219/events","html_url":"https://github.com/justinrainbow/json-schema/issues/219","id":127385221,"number":219,"title":"Pattern Limitations: Regex","user":{"login":"xMolchy","id":14833565,"avatar_url":"https://avatars.githubusercontent.com/u/14833565?v=3","gravatar_id":"","url":"https://api.github.com/users/xMolchy","html_url":"https://github.com/xMolchy","followers_url":"https://api.github.com/users/xMolchy/followers","following_url":"https://api.github.com/users/xMolchy/following{/other_user}","gists_url":"https://api.github.com/users/xMolchy/gists{/gist_id}","starred_url":"https://api.github.com/users/xMolchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xMolchy/subscriptions","organizations_url":"https://api.github.com/users/xMolchy/orgs","repos_url":"https://api.github.com/users/xMolchy/repos","events_url":"https://api.github.com/users/xMolchy/events{/privacy}","received_events_url":"https://api.github.com/users/xMolchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-19T07:48:17Z","updated_at":"2016-01-20T21:16:38Z","closed_at":null,"body":"Hi,\r\n\r\nI really like this library but have seen that Regex  pattern is very limited.\r\n\r\n**FILE:** StringConstraint.php\r\n**CODE:**\r\n```php\r\n        // Verify a regex pattern \r\n        if ( isset( $schema->pattern ) && !preg_match( '#' . str_replace( '#', '\\\\#', $schema->pattern ) . '#', $element ) ) {\r\n            $this->addError( $path, \"Does not match the regex pattern \" . $schema->pattern );\r\n        }\r\n```\r\n\r\n**PROBLEM:** Options after regex pattern are not possible, simple example like /u (Unicode) ...\r\nbecause you are starting and ending regex yourself ... i think whole regex should be done by developers ... if they make an error is their fault ...\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/justinrainbow/json-schema/issues/comments/173361616","html_url":"https://github.com/justinrainbow/json-schema/issues/219#issuecomment-173361616","issue_url":"https://api.github.com/repos/justinrainbow/json-schema/issues/219","id":173361616,"user":{"login":"bighappyface","id":1407330,"avatar_url":"https://avatars.githubusercontent.com/u/1407330?v=3","gravatar_id":"","url":"https://api.github.com/users/bighappyface","html_url":"https://github.com/bighappyface","followers_url":"https://api.github.com/users/bighappyface/followers","following_url":"https://api.github.com/users/bighappyface/following{/other_user}","gists_url":"https://api.github.com/users/bighappyface/gists{/gist_id}","starred_url":"https://api.github.com/users/bighappyface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bighappyface/subscriptions","organizations_url":"https://api.github.com/users/bighappyface/orgs","repos_url":"https://api.github.com/users/bighappyface/repos","events_url":"https://api.github.com/users/bighappyface/events{/privacy}","received_events_url":"https://api.github.com/users/bighappyface/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:16:38Z","updated_at":"2016-01-20T21:16:38Z","body":"@xMolchy pull requests welcome :wink: "}}