{"action":"created","issue":{"url":"https://api.github.com/repos/emancu/toml-rb/issues/75","labels_url":"https://api.github.com/repos/emancu/toml-rb/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/emancu/toml-rb/issues/75/comments","events_url":"https://api.github.com/repos/emancu/toml-rb/issues/75/events","html_url":"https://github.com/emancu/toml-rb/issues/75","id":93776344,"number":75,"title":"Problem with parsing literal string regex","user":{"login":"funzoneq","id":242967,"avatar_url":"https://avatars.githubusercontent.com/u/242967?v=3","gravatar_id":"","url":"https://api.github.com/users/funzoneq","html_url":"https://github.com/funzoneq","followers_url":"https://api.github.com/users/funzoneq/followers","following_url":"https://api.github.com/users/funzoneq/following{/other_user}","gists_url":"https://api.github.com/users/funzoneq/gists{/gist_id}","starred_url":"https://api.github.com/users/funzoneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funzoneq/subscriptions","organizations_url":"https://api.github.com/users/funzoneq/orgs","repos_url":"https://api.github.com/users/funzoneq/repos","events_url":"https://api.github.com/users/funzoneq/events{/privacy}","received_events_url":"https://api.github.com/users/funzoneq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"emancu","id":56375,"avatar_url":"https://avatars.githubusercontent.com/u/56375?v=3","gravatar_id":"","url":"https://api.github.com/users/emancu","html_url":"https://github.com/emancu","followers_url":"https://api.github.com/users/emancu/followers","following_url":"https://api.github.com/users/emancu/following{/other_user}","gists_url":"https://api.github.com/users/emancu/gists{/gist_id}","starred_url":"https://api.github.com/users/emancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emancu/subscriptions","organizations_url":"https://api.github.com/users/emancu/orgs","repos_url":"https://api.github.com/users/emancu/repos","events_url":"https://api.github.com/users/emancu/events{/privacy}","received_events_url":"https://api.github.com/users/emancu/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-07-08T12:27:24Z","updated_at":"2015-07-23T09:55:56Z","closed_at":"2015-07-23T09:55:56Z","body":"```\r\nrequire 'toml'\r\n\r\nstream = <<-EOS\r\n# <28>Jan 14 14:49:55 6.14.2-4550-TEST craftd[1264]:  Minor alarm set, BGP Routing Protocol usage requires a license\r\n\r\n[UdpInput]\r\naddress = \":514\"\r\ndecoder = \"syslog_transform_decoder\"\r\ntest = 'liter\\a/l'\r\n\r\n[syslog_transform_decoder]\r\ntype = \"PayloadRegexDecoder\"\r\nmatch_regex = '^<(?P<Pri>\\d+)>(?P<Timestamp>\\w{3}\\s+\\d+\\s+\\d+:\\d+:\\d+) (?P<Hostname>[^\\s]+) (?P<Process>[\\w\\/]+)\\[(?P<Pid>\\d+)\\]:\\s+(?P<Message>[^\\n]+)'\r\ntimestamp_layout = \"Jan _2 15:04:05\"\r\nEOS\r\n\r\nTOML.parse(stream)\r\n```\r\n\r\nGives the following error:\r\n\r\n```\r\nTOML::ParseError: Failed to parse input on line 9 at offset 14\r\nmatch_regex = '^<(?P<Pri>d+)>(?P<Timestamp>w{3} +d+ +d+:d+:d+) (?P<Hostname>[^ ]+) (?P<Process>[w/]+)[(?P<Pid>d+)]: +(?P<Message>[^\r\n\r\n              ^\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/toml-rb-0.3.8/lib/toml/parser.rb:15:in `rescue in initialize'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/toml-rb-0.3.8/lib/toml/parser.rb:11:in `initialize'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/toml-rb-0.3.8/lib/toml.rb:30:in `new'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/toml-rb-0.3.8/lib/toml.rb:30:in `parse'\r\n\tfrom (irb):78\r\n\tfrom /usr/bin/irb:12:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/emancu/toml-rb/issues/comments/124037906","html_url":"https://github.com/emancu/toml-rb/issues/75#issuecomment-124037906","issue_url":"https://api.github.com/repos/emancu/toml-rb/issues/75","id":124037906,"user":{"login":"funzoneq","id":242967,"avatar_url":"https://avatars.githubusercontent.com/u/242967?v=3","gravatar_id":"","url":"https://api.github.com/users/funzoneq","html_url":"https://github.com/funzoneq","followers_url":"https://api.github.com/users/funzoneq/followers","following_url":"https://api.github.com/users/funzoneq/following{/other_user}","gists_url":"https://api.github.com/users/funzoneq/gists{/gist_id}","starred_url":"https://api.github.com/users/funzoneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funzoneq/subscriptions","organizations_url":"https://api.github.com/users/funzoneq/orgs","repos_url":"https://api.github.com/users/funzoneq/repos","events_url":"https://api.github.com/users/funzoneq/events{/privacy}","received_events_url":"https://api.github.com/users/funzoneq/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T09:55:56Z","updated_at":"2015-07-23T09:55:56Z","body":"Ok, weird. Thanks for the clarification."}}