File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
18
18
SUB = re .compile (r"sub\(/(.*)/,\s+(.*)\)" )
19
- SPLIT = re .compile (r"split(?:\s+)?\((?:\s+)?(?P<j>(?:(?:'|\"))?)(.+)(?P=j)(?:\s+)?,(?:\s+)?((?:(?:\-)?\d+|\*))(?:\s+)?,(?:\s+)?((?:\-)?\d+)(?:\s+)?\)" )
19
+ # Regex generated using the EZRegex package (ezregex.org)
20
+ # EZRegex code:
21
+ # param1 = group(optional(either("'", '"')), name='quote') + group(chunk) + earlier_group('quote')
22
+ # param2 = group(either(optional('-') + number, '*'))
23
+ # param3 = group(optional('-') + number)
24
+ # pattern = 'split' + ow + '(' + ow + param1 + ow + ',' + ow + param2 + ow + ',' + ow + param3 + ow + ')'
25
+ SPLIT = re .compile (r"split(?:\s+)?\((?:\s+)?(?P<quote>(?:(?:'|\"))?)(.+)(?P=quote)(?:\s+)?,(?:\s+)?((?:(?:\-)?\d+|\*))(?:\s+)?,(?:\s+)?((?:\-)?\d+)(?:\s+)?\)" )
20
26
STR = re .compile (r"str\(\)" )
21
27
22
28
You can’t perform that action at this time.
0 commit comments