Builds a regex to capture trailing quantity and unit of measure,
using the provided range separator words.
Matches are read through the named groups qty1, sep, qty2, and uom — never by
index. numericRegexAnywhere is inlined twice and user range separators may contain
capture groups of their own, so every index here is unstable by construction.
The uom body is uomWordSource, shared with firstWordRegEx; it is group-free, so
inlining it is index-neutral.
Builds a regex to capture trailing quantity and unit of measure, using the provided range separator words.
Matches are read through the named groups
qty1,sep,qty2, anduom— never by index.numericRegexAnywhereis inlined twice and user range separators may contain capture groups of their own, so every index here is unstable by construction.The
uombody isuomWordSource, shared withfirstWordRegEx; it is group-free, so inlining it is index-neutral.