{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/1985","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/1985/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/1985/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/1985/events","html_url":"https://github.com/robotframework/robotframework/issues/1985","id":71766156,"number":1985,"title":"Should Match Regexp return only first single match.","user":{"login":"MoonSungHoon","id":1351195,"avatar_url":"https://avatars.githubusercontent.com/u/1351195?v=3","gravatar_id":"","url":"https://api.github.com/users/MoonSungHoon","html_url":"https://github.com/MoonSungHoon","followers_url":"https://api.github.com/users/MoonSungHoon/followers","following_url":"https://api.github.com/users/MoonSungHoon/following{/other_user}","gists_url":"https://api.github.com/users/MoonSungHoon/gists{/gist_id}","starred_url":"https://api.github.com/users/MoonSungHoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoonSungHoon/subscriptions","organizations_url":"https://api.github.com/users/MoonSungHoon/orgs","repos_url":"https://api.github.com/users/MoonSungHoon/repos","events_url":"https://api.github.com/users/MoonSungHoon/events{/privacy}","received_events_url":"https://api.github.com/users/MoonSungHoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/robotframework/labels/beta%202","name":"beta 2","color":"ffffff"},{"url":"https://api.github.com/repos/robotframework/robotframework/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/robotframework/robotframework/labels/prio-medium","name":"prio-medium","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/robotframework/robotframework/milestones/16","html_url":"https://github.com/robotframework/robotframework/milestones/2.9","labels_url":"https://api.github.com/repos/robotframework/robotframework/milestones/16/labels","id":705012,"number":16,"title":"2.9","description":null,"creator":{"login":"spooning","id":1658993,"avatar_url":"https://avatars.githubusercontent.com/u/1658993?v=3","gravatar_id":"","url":"https://api.github.com/users/spooning","html_url":"https://github.com/spooning","followers_url":"https://api.github.com/users/spooning/followers","following_url":"https://api.github.com/users/spooning/following{/other_user}","gists_url":"https://api.github.com/users/spooning/gists{/gist_id}","starred_url":"https://api.github.com/users/spooning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spooning/subscriptions","organizations_url":"https://api.github.com/users/spooning/orgs","repos_url":"https://api.github.com/users/spooning/repos","events_url":"https://api.github.com/users/spooning/events{/privacy}","received_events_url":"https://api.github.com/users/spooning/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":84,"state":"open","created_at":"2014-06-29T21:43:00Z","updated_at":"2015-06-30T08:45:42Z","due_on":null,"closed_at":null},"comments":27,"created_at":"2015-04-29T03:19:00Z","updated_at":"2015-06-30T12:15:09Z","closed_at":null,"body":"I want find multiple match result in a regexp. But 'Should Match Regexp' does not support multiple result.\r\n\r\n```python\r\nimport re\r\np = re.compile(ur'(?P<name>a)b', re.MULTILINE)\r\ntest_str = u\"abcdeabababbbaaba\"\r\n \r\nre.findall(p, test_str)\r\n```\r\n\r\n```\r\n${result}=\tShould Match Regexp\tabcdeabababbbaababc\t(?P<name>ab)c\r\nlog\t${result}\t\t\r\n\r\nINFO : ${result} = [u'abc', u'ab']\r\n```\r\n\r\nI don't know what is the good form to get multiple named result. (maybe ['abc','ab','abc','ab'] or [['abc','ab'],['abc','ab']])\r\nI think add an option is good to apply that. Thanks."},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/117155870","html_url":"https://github.com/robotframework/robotframework/issues/1985#issuecomment-117155870","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/1985","id":117155870,"user":{"login":"edbrannin","id":121909,"avatar_url":"https://avatars.githubusercontent.com/u/121909?v=3","gravatar_id":"","url":"https://api.github.com/users/edbrannin","html_url":"https://github.com/edbrannin","followers_url":"https://api.github.com/users/edbrannin/followers","following_url":"https://api.github.com/users/edbrannin/following{/other_user}","gists_url":"https://api.github.com/users/edbrannin/gists{/gist_id}","starred_url":"https://api.github.com/users/edbrannin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edbrannin/subscriptions","organizations_url":"https://api.github.com/users/edbrannin/orgs","repos_url":"https://api.github.com/users/edbrannin/repos","events_url":"https://api.github.com/users/edbrannin/events{/privacy}","received_events_url":"https://api.github.com/users/edbrannin/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T12:15:09Z","updated_at":"2015-06-30T12:15:09Z","body":"I was looking at our internal `HelperLibrary.py` yesterday and found a keyword that's perfect for this situation, at the expense of one extra keyword:\r\n\r\nIt went something like this:\r\n\r\n```python\r\ndef zip_and_flatten(iterable):\r\n    answer = list()\r\n    for item in zip(*iterable):\r\n        answer += item\r\n    return answer\r\n```\r\n\r\n```robot\r\n*** Settings ***\r\nLibrary    zip_and_flatten.py\r\n\r\n*** Test Cases ***\r\n\r\nTest 1985\r\n    ${matches} =    Evaluate    [(2,2), (3,4)]\r\n    ${matches}=    Zip and Flatten    ${matches}\r\n    : FOR    ${first}    ${second}    IN     @{matches}\r\n    \\    Log Many    ${first}    ${second}\r\n```"}}