Files
Comparison_Project/app/utils/regex_utils.py

12 lines
337 B
Python
Raw Normal View History

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)
PIPE_MM_PATTERN = re.compile(r"^pipe_\d+_mm$")
2026-03-17 18:02:28 +05:30
# sum fields of MH dc (d_0_to_0_75)
2026-03-18 10:19:11 +05:30
D_RANGE_PATTERN = re.compile( r"^d_\d+(?:_\d+)?_to_\d+(?:_\d+)?$")