{"action":"created","issue":{"url":"https://api.github.com/repos/Liniarc/regexProgram/issues/7","labels_url":"https://api.github.com/repos/Liniarc/regexProgram/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Liniarc/regexProgram/issues/7/comments","events_url":"https://api.github.com/repos/Liniarc/regexProgram/issues/7/events","html_url":"https://github.com/Liniarc/regexProgram/issues/7","id":53382819,"number":7,"title":"Back reference and Problem 6","user":{"login":"livibetter","id":30909,"avatar_url":"https://avatars.githubusercontent.com/u/30909?v=3","gravatar_id":"","url":"https://api.github.com/users/livibetter","html_url":"https://github.com/livibetter","followers_url":"https://api.github.com/users/livibetter/followers","following_url":"https://api.github.com/users/livibetter/following{/other_user}","gists_url":"https://api.github.com/users/livibetter/gists{/gist_id}","starred_url":"https://api.github.com/users/livibetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livibetter/subscriptions","organizations_url":"https://api.github.com/users/livibetter/orgs","repos_url":"https://api.github.com/users/livibetter/repos","events_url":"https://api.github.com/users/livibetter/events{/privacy}","received_events_url":"https://api.github.com/users/livibetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-05T10:31:53Z","updated_at":"2015-01-07T08:39:58Z","closed_at":null,"body":"I couldn't get past Problem 6 which requries the use of back reference `\\#`, I think the code needs to be enbabled for [back references][bkref] (from 1.52 doc, the version I am using):\r\n\r\n> `no_bk_refs`:  When set then backreferences are disabled. This bit is on by default for POSIX-Extended regular expressions, but can be unset to support for backreferences on.\r\n\r\n[bkref]: http://www.boost.org/doc/libs/1_52_0/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_extended.html\r\n\r\nI made the following change:\r\n\r\n```diff\r\ndiff --git a/regex.cpp b/regex.cpp\r\nindex fd39b1b..8847690 100644\r\n--- a/regex.cpp\r\n+++ b/regex.cpp\r\n@@ -289,7 +289,7 @@ void performRegex()\r\n     {\r\n         if (extended)\r\n         {\r\n-            r.assign(regexPattern.c_str(), regex::extended);\r\n+            r.assign(regexPattern.c_str(), regex::extended & ~regex::no_bk_refs);\r\n         }\r\n         else\r\n         {\r\n```\r\n\r\nIt does work for me. I could confirm that with the first problem `(a)b\\1` to see it matching \"aba\". I am not familiar with Boost or C++, not sure if this is the right fix, or I'd just submit a PR.\r\n\r\n(Can we get an option for jumping to problem # or a key to skip a problem?)"},"comment":{"url":"https://api.github.com/repos/Liniarc/regexProgram/issues/comments/68992786","html_url":"https://github.com/Liniarc/regexProgram/issues/7#issuecomment-68992786","issue_url":"https://api.github.com/repos/Liniarc/regexProgram/issues/7","id":68992786,"user":{"login":"JelF","id":861181,"avatar_url":"https://avatars.githubusercontent.com/u/861181?v=3","gravatar_id":"","url":"https://api.github.com/users/JelF","html_url":"https://github.com/JelF","followers_url":"https://api.github.com/users/JelF/followers","following_url":"https://api.github.com/users/JelF/following{/other_user}","gists_url":"https://api.github.com/users/JelF/gists{/gist_id}","starred_url":"https://api.github.com/users/JelF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelF/subscriptions","organizations_url":"https://api.github.com/users/JelF/orgs","repos_url":"https://api.github.com/users/JelF/repos","events_url":"https://api.github.com/users/JelF/events{/privacy}","received_events_url":"https://api.github.com/users/JelF/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T08:39:57Z","updated_at":"2015-01-07T08:39:57Z","body":"@livibetter it seems i realy wanna to know problem 6 solution as it done by @Liniarc :)"}}