diff --git a/operators/rxGlobal.json b/operators/rxGlobal.json new file mode 100644 index 0000000..0145ad8 --- /dev/null +++ b/operators/rxGlobal.json @@ -0,0 +1,162 @@ +[ + { + "param" : "test", + "input" : "qqtestqq", + "ret" : 1, + "type" : "op", + "name" : "rxGlobal" + }, + { + "param" : "", + "input" : "", + "ret" : 1, + "type" : "op", + "name" : "rxGlobal" + }, + { + "name" : "rxGlobal", + "type" : "op", + "ret" : 0, + "param" : "TestCase", + "input" : "" + }, + { + "ret" : 1, + "type" : "op", + "name" : "rxGlobal", + "param" : "", + "input" : "TestCase" + }, + { + "param" : "abc", + "input" : "abcdefghi", + "type" : "op", + "ret" : 1, + "name" : "rxGlobal" + }, + { + "param" : "def", + "input" : "abcdefghi", + "type" : "op", + "ret" : 1, + "name" : "rxGlobal", + "re_groups": ["def"] + }, + { + "param" : "ghi", + "input" : "abcdefghi", + "name" : "rxGlobal", + "type" : "op", + "ret" : 1, + "re_groups": ["ghi"] + }, + { + "ret" : 0, + "type" : "op", + "name" : "rxGlobal", + "param" : "ghij", + "input" : "abcdefghi" + }, + { + "ret" : 1, + "type" : "op", + "name" : "rxGlobal", + "param" : "(?i:(sleep\\((\\s*?)(\\d*?)(\\s*?)\\)|benchmark\\((.*?)\\,(.*?)\\)))", + "input" : "SELECT pg_sleep(10);" + }, + { + "type" : "op", + "name" : "rxGlobal", + "param" : "(abc)(def)", + "input" : "abcdef", + "ret" : 1, + "re_groups": ["abcdef", "abc", "def"] + }, + { + "type" : "op", + "name" : "rxGlobal", + "param" : "(a|b|1|2)(a|b|1|2)", + "input" : "a2b1", + "ret" : 1, + "re_groups": ["a2", "a", "2"] + }, + { + "type" : "op", + "name" : "rxGlobal", + "param" : "<\\?(?!xml)", + "input" : "