2026-03-17 15:35:52 +05:30
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
class RegularExpression:
|
|
|
|
|
|
2026-03-17 18:02:28 +05:30
|
|
|
# sum fields of TrEx, MhEx (_total)
|
|
|
|
|
STR_TOTAL_PATTERN = re.compile(r".*_total$")
|
|
|
|
|
|
|
|
|
|
# sum fields of pipe laying (pipe_150_mm)
|
2026-03-17 15:35:52 +05:30
|
|
|
PIPE_MM_PATTERN = re.compile(r"^pipe_\d+_mm$")
|
2026-03-17 18:02:28 +05:30
|
|
|
|
2026-03-17 15:35:52 +05:30
|
|
|
# sum fields of MH dc (d_0_to_0_75)
|
2026-03-17 18:02:28 +05:30
|
|
|
D_RANGE_PATTERN = re.compile( r"^d_\d+(?:_\d+)?_to_\d+(?:_\d+)?$")
|