{"action":"created","comment":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/comments/55073476","id":55073476,"diff_hunk":"@@ -114,19 +113,33 @@ def greater_than(value, criteria_pattern):\n     return value > criteria_pattern\n \n \n-def match_wildcard(value, criteria_pattern):\n+def match_regex(value, criteria_pattern):\n     if criteria_pattern is None:\n         return False\n+    regex = re.compile(criteria_pattern)\n+    # check for a match and not for details of the match.\n+    return regex.match(value) is not None\n \n-    return fnmatch.fnmatch(value, criteria_pattern)\n+def imatch_regex(value, criteria_pattern):\n+    if criteria_pattern is None:\n+        return False\n+    regex = re.compile(criteria_pattern, re.IGNORECASE)\n+    # check for a match and not for details of the match.\n+    return regex.match(value) is not None\n \n+def search_regex(value, criteria_pattern):\n+    if criteria_pattern is None:\n+        return False\n+    regex = re.compile(criteria_pattern)\n+    # check for a match and not for details of the match.\n+    return regex.search(value) is not None\n \n-def match_regex(value, criteria_pattern):\n+def isearch_regex(value, criteria_pattern):\n     if criteria_pattern is None:\n         return False\n-    regex = re.compile(criteria_pattern, re.DOTALL)","path":"st2common/st2common/operators.py","position":39,"original_position":39,"commit_id":"a8a555d06722328602e5f12e5911b6eb92151f48","original_commit_id":"a8a555d06722328602e5f12e5911b6eb92151f48","user":{"login":"manasdk","id":1776099,"avatar_url":"https://avatars.githubusercontent.com/u/1776099?v=3","gravatar_id":"","url":"https://api.github.com/users/manasdk","html_url":"https://github.com/manasdk","followers_url":"https://api.github.com/users/manasdk/followers","following_url":"https://api.github.com/users/manasdk/following{/other_user}","gists_url":"https://api.github.com/users/manasdk/gists{/gist_id}","starred_url":"https://api.github.com/users/manasdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manasdk/subscriptions","organizations_url":"https://api.github.com/users/manasdk/orgs","repos_url":"https://api.github.com/users/manasdk/repos","events_url":"https://api.github.com/users/manasdk/events{/privacy}","received_events_url":"https://api.github.com/users/manasdk/received_events","type":"User","site_admin":false},"body":"Why is DOTALL removed? We can look back atthe recent PR where this was added to understand why it is needed.","created_at":"2016-03-04T19:03:57Z","updated_at":"2016-03-04T19:03:57Z","html_url":"https://github.com/StackStorm/st2/pull/2558#discussion_r55073476","pull_request_url":"https://api.github.com/repos/StackStorm/st2/pulls/2558","_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/comments/55073476"},"html":{"href":"https://github.com/StackStorm/st2/pull/2558#discussion_r55073476"},"pull_request":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2558"}}},"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/2558","id":61755388,"html_url":"https://github.com/StackStorm/st2/pull/2558","diff_url":"https://github.com/StackStorm/st2/pull/2558.diff","patch_url":"https://github.com/StackStorm/st2/pull/2558.patch","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/2558","number":2558,"state":"open","locked":false,"title":"Add imatchregex, searchregex, and isearchregex operators.","user":{"login":"pixelrebel","id":6970087,"avatar_url":"https://avatars.githubusercontent.com/u/6970087?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelrebel","html_url":"https://github.com/pixelrebel","followers_url":"https://api.github.com/users/pixelrebel/followers","following_url":"https://api.github.com/users/pixelrebel/following{/other_user}","gists_url":"https://api.github.com/users/pixelrebel/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelrebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelrebel/subscriptions","organizations_url":"https://api.github.com/users/pixelrebel/orgs","repos_url":"https://api.github.com/users/pixelrebel/repos","events_url":"https://api.github.com/users/pixelrebel/events{/privacy}","received_events_url":"https://api.github.com/users/pixelrebel/received_events","type":"User","site_admin":false},"body":"Addresses issue https://github.com/StackStorm/st2/issues/2557","created_at":"2016-03-04T19:00:46Z","updated_at":"2016-03-04T19:03:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c11cbb5877799d3a122911ad54dbddca1078e07e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2/pulls/2558/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2/pulls/2558/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/2558/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/a8a555d06722328602e5f12e5911b6eb92151f48","head":{"label":"pixelrebel:issue2557","ref":"issue2557","sha":"a8a555d06722328602e5f12e5911b6eb92151f48","user":{"login":"pixelrebel","id":6970087,"avatar_url":"https://avatars.githubusercontent.com/u/6970087?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelrebel","html_url":"https://github.com/pixelrebel","followers_url":"https://api.github.com/users/pixelrebel/followers","following_url":"https://api.github.com/users/pixelrebel/following{/other_user}","gists_url":"https://api.github.com/users/pixelrebel/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelrebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelrebel/subscriptions","organizations_url":"https://api.github.com/users/pixelrebel/orgs","repos_url":"https://api.github.com/users/pixelrebel/repos","events_url":"https://api.github.com/users/pixelrebel/events{/privacy}","received_events_url":"https://api.github.com/users/pixelrebel/received_events","type":"User","site_admin":false},"repo":{"id":44696067,"name":"st2","full_name":"pixelrebel/st2","owner":{"login":"pixelrebel","id":6970087,"avatar_url":"https://avatars.githubusercontent.com/u/6970087?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelrebel","html_url":"https://github.com/pixelrebel","followers_url":"https://api.github.com/users/pixelrebel/followers","following_url":"https://api.github.com/users/pixelrebel/following{/other_user}","gists_url":"https://api.github.com/users/pixelrebel/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelrebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelrebel/subscriptions","organizations_url":"https://api.github.com/users/pixelrebel/orgs","repos_url":"https://api.github.com/users/pixelrebel/repos","events_url":"https://api.github.com/users/pixelrebel/events{/privacy}","received_events_url":"https://api.github.com/users/pixelrebel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pixelrebel/st2","description":"StackStorm (aka \"IFTTT for Ops\") is event-driven automation commonly used for auto-remediation, security responses, facilitated troubleshooting, complex deployments, and more. Includes rules engine, workflow, 1500+ integrations, native ChatOps and so forth.  Zingy installer available at http://docs.stackstorm.com/install/index.html. Ping us on slack - https://stackstorm-community.slack.com/. ","fork":true,"url":"https://api.github.com/repos/pixelrebel/st2","forks_url":"https://api.github.com/repos/pixelrebel/st2/forks","keys_url":"https://api.github.com/repos/pixelrebel/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pixelrebel/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pixelrebel/st2/teams","hooks_url":"https://api.github.com/repos/pixelrebel/st2/hooks","issue_events_url":"https://api.github.com/repos/pixelrebel/st2/issues/events{/number}","events_url":"https://api.github.com/repos/pixelrebel/st2/events","assignees_url":"https://api.github.com/repos/pixelrebel/st2/assignees{/user}","branches_url":"https://api.github.com/repos/pixelrebel/st2/branches{/branch}","tags_url":"https://api.github.com/repos/pixelrebel/st2/tags","blobs_url":"https://api.github.com/repos/pixelrebel/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pixelrebel/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pixelrebel/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/pixelrebel/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pixelrebel/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/pixelrebel/st2/languages","stargazers_url":"https://api.github.com/repos/pixelrebel/st2/stargazers","contributors_url":"https://api.github.com/repos/pixelrebel/st2/contributors","subscribers_url":"https://api.github.com/repos/pixelrebel/st2/subscribers","subscription_url":"https://api.github.com/repos/pixelrebel/st2/subscription","commits_url":"https://api.github.com/repos/pixelrebel/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/pixelrebel/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/pixelrebel/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/pixelrebel/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/pixelrebel/st2/contents/{+path}","compare_url":"https://api.github.com/repos/pixelrebel/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pixelrebel/st2/merges","archive_url":"https://api.github.com/repos/pixelrebel/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pixelrebel/st2/downloads","issues_url":"https://api.github.com/repos/pixelrebel/st2/issues{/number}","pulls_url":"https://api.github.com/repos/pixelrebel/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/pixelrebel/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/pixelrebel/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pixelrebel/st2/labels{/name}","releases_url":"https://api.github.com/repos/pixelrebel/st2/releases{/id}","deployments_url":"https://api.github.com/repos/pixelrebel/st2/deployments","created_at":"2015-10-21T18:27:27Z","updated_at":"2015-10-21T18:27:31Z","pushed_at":"2016-03-04T19:00:00Z","git_url":"git://github.com/pixelrebel/st2.git","ssh_url":"git@github.com:pixelrebel/st2.git","clone_url":"https://github.com/pixelrebel/st2.git","svn_url":"https://github.com/pixelrebel/st2","homepage":"http://www.stackstorm.com/","size":13941,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"fe531d2be526a0b1858c54aeac2c4088db8bf30c","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":19051806,"name":"st2","full_name":"StackStorm/st2","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2","description":"StackStorm (aka \"IFTTT for Ops\") is event-driven automation commonly used for auto-remediation, security responses, facilitated troubleshooting, complex deployments, and more. Includes rules engine, workflow,1800+ integrations (see /st2contrib), native ChatOps and so forth.  Installer available at http://docs.stackstorm.com/install/index.html. Ping us on slack - https://stackstorm-community.slack.com/. ","fork":false,"url":"https://api.github.com/repos/StackStorm/st2","forks_url":"https://api.github.com/repos/StackStorm/st2/forks","keys_url":"https://api.github.com/repos/StackStorm/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2/events","assignees_url":"https://api.github.com/repos/StackStorm/st2/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2/merges","archive_url":"https://api.github.com/repos/StackStorm/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2/deployments","created_at":"2014-04-23T00:51:34Z","updated_at":"2016-03-03T17:41:58Z","pushed_at":"2016-03-04T19:00:46Z","git_url":"git://github.com/StackStorm/st2.git","ssh_url":"git@github.com:StackStorm/st2.git","clone_url":"https://github.com/StackStorm/st2.git","svn_url":"https://github.com/StackStorm/st2","homepage":"http://www.stackstorm.com/","size":16166,"stargazers_count":1232,"watchers_count":1232,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":118,"forks":114,"open_issues":118,"watchers":1232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2558"},"html":{"href":"https://github.com/StackStorm/st2/pull/2558"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2558"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2558/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2558/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2558/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2/statuses/a8a555d06722328602e5f12e5911b6eb92151f48"}}}}