{"action":"opened","issue":{"url":"https://api.github.com/repos/sharplet/Regex/issues/30","labels_url":"https://api.github.com/repos/sharplet/Regex/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/sharplet/Regex/issues/30/comments","events_url":"https://api.github.com/repos/sharplet/Regex/issues/30/events","html_url":"https://github.com/sharplet/Regex/issues/30","id":125165621,"number":30,"title":"Regex.matches does not exist","user":{"login":"ricardopereira","id":3541185,"avatar_url":"https://avatars.githubusercontent.com/u/3541185?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardopereira","html_url":"https://github.com/ricardopereira","followers_url":"https://api.github.com/users/ricardopereira/followers","following_url":"https://api.github.com/users/ricardopereira/following{/other_user}","gists_url":"https://api.github.com/users/ricardopereira/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopereira/subscriptions","organizations_url":"https://api.github.com/users/ricardopereira/orgs","repos_url":"https://api.github.com/users/ricardopereira/repos","events_url":"https://api.github.com/users/ricardopereira/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T12:11:55Z","updated_at":"2016-01-06T12:11:55Z","closed_at":null,"body":"I was testing the Regex object and the README has an example using `matches` but it does not exist.\r\n\r\n```\r\nRegex(\"Custom from:([0-9]+) to:([0-9]+)\").matches(value) //error\r\n```\r\n\r\nIt it normal the first capture to be the full value?\r\n```\r\nlet matchResult = Regex(\"Custom from:([0-9]+) to:([0-9]+)\").match(value)\r\n// value e.g.: Custom from:1451811437 to:1452329837\r\n\r\nprint(matchResult.captures.count) //prints 3\r\nprint(matchResult.captures[0]) //prints Custom from:1451811437 to:1452329837\r\nprint(matchResult.captures[1]) //prints 1451811437\r\nprint(matchResult.captures[2]) //prints 1452329837\r\n```"}}