I need a reliable pattern to flag ‘25mm’ instead of ‘25 mm’ in machinery manuals without catching model codes like ‘X25mm-3’ in Trados Studio 2022 SR2 (QA Checker 3.0) and memoQ 10.4. If you have a tested regex or a QA profile configuration that covers mm, cm, Nm, and °C, please share the exact pattern and where you attach it (project template or per-project QA).
I get where you’re coming from! I once had a similar issue with ‘cm’ creeping into a QA check; I found that using a negative lookbehind can help clear it up without snagging model numbers. Check out Regex101 for testing your patterns if you haven’t already — it’s a lifesaver for fine-tuning those expressions.
I had success using a regex like (?<!\w)(\d+)(mm|cm|Nm|°C)(?!-) to target those units without catching the model codes; it’s really helped refine my checks, especially in memoQ. Have you tried playing around with negative lookaheads too?