{"action":"opened","issue":{"url":"https://api.github.com/repos/julianthome/prex/issues/1","repository_url":"https://api.github.com/repos/julianthome/prex","labels_url":"https://api.github.com/repos/julianthome/prex/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/julianthome/prex/issues/1/comments","events_url":"https://api.github.com/repos/julianthome/prex/issues/1/events","html_url":"https://github.com/julianthome/prex/issues/1","id":248962669,"number":1,"title":"full text search","user":{"login":"parisni","id":9535350,"avatar_url":"https://avatars1.githubusercontent.com/u/9535350?v=4","gravatar_id":"","url":"https://api.github.com/users/parisni","html_url":"https://github.com/parisni","followers_url":"https://api.github.com/users/parisni/followers","following_url":"https://api.github.com/users/parisni/following{/other_user}","gists_url":"https://api.github.com/users/parisni/gists{/gist_id}","starred_url":"https://api.github.com/users/parisni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisni/subscriptions","organizations_url":"https://api.github.com/users/parisni/orgs","repos_url":"https://api.github.com/users/parisni/repos","events_url":"https://api.github.com/users/parisni/events{/privacy}","received_events_url":"https://api.github.com/users/parisni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-09T08:58:57Z","updated_at":"2017-08-09T08:58:57Z","closed_at":null,"body":"Hi\r\n\r\nMy use case is to match text containing \"pattern\". I tested this code:\r\n\r\n```\r\n    public void testPrex(){\r\n    \tPrex am = new Prex(\".*3 rue des cerisiers.*\");\r\n    \tSystem.out.println(\"PREX: \" + am.evaluateCost(\"123 3 rue des cerisiers 456\", true, true));\r\n    \tSystem.out.println(\"PREX: \" + am.evaluateCost(\"world 3 rue des cerisiers hello\", true, true));\r\n    }\r\n```\r\n\r\noutput is:\r\n\r\n```\r\nPREX: 0.0\r\nPREX: 0.75\r\n```\r\n\r\ni guess the output should be:\r\n\r\n```\r\nPREX: 0.0\r\nPREX: 0.0\r\n```\r\n\r\n1. Is there any problem there ?\r\n\r\n\r\n2. maybe that kind of query is out of the scope of your program ?\r\n\r\n3. Is there any way to extract the matched pattern ? (ie get \"3 rue des cerisiers\") ?"}}
{"actor":{"display_login":"parisni"}}