1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| pattern_groups = { "PagePath Matches": [ (re.compile(r'pagePath:\s*"(.*?)"'), "pagePath_double_quotes"), (re.compile(r"pagePath:\s*'(.*?)'"), "pagePath_double_quotes"), ], "Path Matches": [ (re.compile(r'path:\s*"(.*?)"'), "path_double_quotes"), (re.compile(r"path:\s*'(.*?)'"), "path_double_quotes"), (re.compile(r'url:\s*"([^"]+)"'), "path_double_quotes"), (re.compile(r'url: "([^"]+)'), "path_double_quotes"), ], "GET Matches": [ (re.compile(r'get\([^()]*?"([^"]*?)"[^()]*?\)'), "get_double_quotes"), (re.compile(r"get\([^()]*?['\"]([^'\"]*?)['\"][^()]*?\)"), "get_double_quotes"), ], "POST Matches": [ (re.compile(r'post\([^()]*?"([^"]*?)"[^()]*?\)'), "post_double_quotes"), (re.compile(r"POST\([^()]*?['\"]([^'\"]*?)['\"][^()]*?\)"), "post_double_quotes"), ] }
|