diff --git a/parsers/survex.py b/parsers/survex.py index 74d085d..a50ab39 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -1655,16 +1655,6 @@ class LoadingSurvex: It _should_ recognise a non-numeric survey station ID, but currently doesn't. Valid QM types are [A-DvVxX?] A-D, V for Vertical, X for horrible and ? for unknown """ - # rx_qm : r"(?i)^\s*QM(\d+)\s+?(.+)\s+([\w\-\_]+)(\.([\w\.\-]+)?)\s+(([\w\-]+)\.([\w\.\-]+)|\-)\s+(.+)$) - # This regex parses strings that start with "QM" followed by digits, then extracts several structured parts: - # (?i) : Case-insensitive matching - # ^\s* : Start of line, optional leading whitespace - # QM(\d+) : "QM" followed by a digit sequence (capture group 1) - # \s+?(.+) : Minimal spaces, then a descriptive text (capture group 2) - # \s+([\w\-_]+) : identifier prefix with word characters, hyphen or underscore (capture group 3) - # (\.([\w.\-]+)?) : identifier starting with a dot (capture group 4 and 5) - # \s+(([\w\-]+)\.([\w.\-]+)|\-?) : Either a pair of identifiers separated by a dot or an optional single dash (capture group 6, with 7 & 8 as subgroups) - # \s+(.+)$ : Remaining text at the end (e.g., comments or summary) (capture group 9) qmline = self.rx_qm.match(comment) if qmline: self.LoadSurvexQM(survexblock, qmline)