{"action":"closed","issue":{"url":"https://api.github.com/repos/Dica-Developer/MTG/issues/24","repository_url":"https://api.github.com/repos/Dica-Developer/MTG","labels_url":"https://api.github.com/repos/Dica-Developer/MTG/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Dica-Developer/MTG/issues/24/comments","events_url":"https://api.github.com/repos/Dica-Developer/MTG/issues/24/events","html_url":"https://github.com/Dica-Developer/MTG/issues/24","id":142476849,"number":24,"title":"Help with Regex needed","user":{"login":"JayGray","id":675206,"avatar_url":"https://avatars.githubusercontent.com/u/675206?v=3","gravatar_id":"","url":"https://api.github.com/users/JayGray","html_url":"https://github.com/JayGray","followers_url":"https://api.github.com/users/JayGray/followers","following_url":"https://api.github.com/users/JayGray/following{/other_user}","gists_url":"https://api.github.com/users/JayGray/gists{/gist_id}","starred_url":"https://api.github.com/users/JayGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayGray/subscriptions","organizations_url":"https://api.github.com/users/JayGray/orgs","repos_url":"https://api.github.com/users/JayGray/repos","events_url":"https://api.github.com/users/JayGray/events{/privacy}","received_events_url":"https://api.github.com/users/JayGray/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mschaaf","id":703355,"avatar_url":"https://avatars.githubusercontent.com/u/703355?v=3","gravatar_id":"","url":"https://api.github.com/users/mschaaf","html_url":"https://github.com/mschaaf","followers_url":"https://api.github.com/users/mschaaf/followers","following_url":"https://api.github.com/users/mschaaf/following{/other_user}","gists_url":"https://api.github.com/users/mschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/mschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschaaf/subscriptions","organizations_url":"https://api.github.com/users/mschaaf/orgs","repos_url":"https://api.github.com/users/mschaaf/repos","events_url":"https://api.github.com/users/mschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/mschaaf/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-21T21:29:41Z","updated_at":"2016-04-12T20:40:39Z","closed_at":"2016-04-12T20:40:39Z","body":"@mschaaf\r\nFor the filter of cards I need to change how to handle the color filter.\r\nNot all cards (especially the newer) don't have a `color` property anymore.\r\nNow I need a regex to filter cards by `manaCost`.\r\n### Given:\r\n`<String> manaCost = '{2}{R}{U}{C}'`\r\n`<String> manaCost2 = '{U}'`\r\n\r\n### Solved:\r\nCurrent regex to filter by color is:\r\n`/U/g` returns true if test with `manaCost` and `manaCost2`\r\nto filter by more than one color:\r\n`/U|R/g` returns true with `manaCost` and `manaCost2`\r\n\r\n### Question:\r\nI want to give the user the option to set some kind of `strict` mode.\r\nMeans, if I filter by `U` only `manaCost2` will match or filter by `R && U` nothing will match,\r\nbecause `manaCost` has more than the given color and `manaCost2` less.\r\nI need an exact match of colors.\r\n\r\nThx"}}