-
Notifications
You must be signed in to change notification settings - Fork 0
/
regex.txt
14 lines (10 loc) · 1.12 KB
/
regex.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Varaible : ${test} ${test.test} ${test_test.test} ${test[0]}
reg : (?P<match>\${(?P<variable>[\w._-]+)(?:\[(?P<index>[\d]+)])?})
Function : @{test} @{test; test2} @{test; param b/test}
reg : (?P<match>@{(?P<functionName>[^{}\s]+)(?:; (?P<parameters>[^{}]+))?})
Condition : #{test == test; test | test} #{test != test; #{"test" == test; test | test} | test}
reg : (?P<match>#{(?P<conditionValue1>[^{#}]+) (?P<conditionSymbol>==|!=|<=|<|>=|>) (?P<conditionValue2>[^{#}]+); (?P<trueValue>[^{}]+) \| (?P<falseValue>[^{}]+)})
Switch : ?{test; test::ok, test2::ko, _::default} ?{int/test; test::ok, test2::nop, _::default}
reg : (?P<match>\?{(?:(?P<type>str|int|float)/)?(?P<variable>[\w._-]+)(?:\[(?P<index>[\d]+)])?; (?P<values>(?:[^{}]+::[^{}]+){2,}), _::(?P<defaultValue>[^{}]+)})
Typing : variable test[1456] "test" 'test' `test` b/true b/false i/123_123 f/123_132.156_32 (list,test)
reg : \"(?P<str_double>[^\"]+)\"|\'(?P<str_single>[^\']+)\'|\x60(?P<str_back>[^\x60]+)\x60|b/(?P<bool>[Tt]rue|[Ff]alse)|i/(?P<int>[0-9_]+)|f/(?P<float>[0-9_.]+)|(?P<variable>[\w._-]+)(?:\[(?P<index>[\d]+)])?|\((?P<list>[^\(\)]+)\)