the regex lengths could be reduced again using the \K feature