{"action":"created","issue":{"url":"https://api.github.com/repos/mojombo/semver/issues/232","labels_url":"https://api.github.com/repos/mojombo/semver/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/mojombo/semver/issues/232/comments","events_url":"https://api.github.com/repos/mojombo/semver/issues/232/events","html_url":"https://github.com/mojombo/semver/issues/232","id":48635632,"number":232,"title":"RegEx for validating SemVer-numbers","user":{"login":"DavidFichtmueller","id":7805030,"avatar_url":"https://avatars.githubusercontent.com/u/7805030?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidFichtmueller","html_url":"https://github.com/DavidFichtmueller","followers_url":"https://api.github.com/users/DavidFichtmueller/followers","following_url":"https://api.github.com/users/DavidFichtmueller/following{/other_user}","gists_url":"https://api.github.com/users/DavidFichtmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidFichtmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidFichtmueller/subscriptions","organizations_url":"https://api.github.com/users/DavidFichtmueller/orgs","repos_url":"https://api.github.com/users/DavidFichtmueller/repos","events_url":"https://api.github.com/users/DavidFichtmueller/events{/privacy}","received_events_url":"https://api.github.com/users/DavidFichtmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-13T13:27:57Z","updated_at":"2015-08-26T19:58:09Z","closed_at":null,"body":"I just created a RegEx to check if a version number is a valid Semantic Version Number according to the specification. \r\n```\r\n^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$\r\n```\r\nMaybe this is useful for some people out there or it could be added to the documentation."},"comment":{"url":"https://api.github.com/repos/mojombo/semver/issues/comments/135154265","html_url":"https://github.com/mojombo/semver/issues/232#issuecomment-135154265","issue_url":"https://api.github.com/repos/mojombo/semver/issues/232","id":135154265,"user":{"login":"BartG95","id":5556906,"avatar_url":"https://avatars.githubusercontent.com/u/5556906?v=3","gravatar_id":"","url":"https://api.github.com/users/BartG95","html_url":"https://github.com/BartG95","followers_url":"https://api.github.com/users/BartG95/followers","following_url":"https://api.github.com/users/BartG95/following{/other_user}","gists_url":"https://api.github.com/users/BartG95/gists{/gist_id}","starred_url":"https://api.github.com/users/BartG95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BartG95/subscriptions","organizations_url":"https://api.github.com/users/BartG95/orgs","repos_url":"https://api.github.com/users/BartG95/repos","events_url":"https://api.github.com/users/BartG95/events{/privacy}","received_events_url":"https://api.github.com/users/BartG95/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T19:58:09Z","updated_at":"2015-08-26T19:58:09Z","body":"If I'm not mistaken \r\n````\r\n\\d*[a-zA-Z-][0-9a-zA-Z-]*\r\n````\r\nis the same as\r\n````\r\n[0-9a-zA-Z-]+\r\n````\r\n(note the plus)"}}