create regular exp added and change model
This commit is contained in:
10
app/utils/regex_utils.py
Normal file
10
app/utils/regex_utils.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import re
|
||||
|
||||
class RegularExpression:
|
||||
|
||||
# sum field 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+)?$")
|
||||
|
||||
Reference in New Issue
Block a user