-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregex.txt
19 lines (10 loc) · 1.04 KB
/
regex.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 :
reg : "(?P<str_double>[^"]+)"|'(?P<str_single>[^']+)'|`(?P<str_back>[^`]+)`|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>[^\(\)]+)\)