12 lines
336 B
Python
12 lines
336 B
Python
import re
|
|
|
|
class RegularExpression:
|
|
|
|
# sum fields of TrEx, MhEx (_total)
|
|
STR_TOTAL_PATTERN = re.compile(r".*_total$")
|
|
|
|
# sum fields of pipe laying (pipe_150_mm)
|
|
PIPE_MM_PATTERN = re.compile(r"^pipe_\d+_mm$")
|
|
|
|
# sum fields of MH dc (d_0_to_0_75)
|
|
D_RANGE_PATTERN = re.compile( r"^d_\d+(?:_\d+)?_to_\d+(?:_\d+)?$") |