Without searching through the rest of the code, it is not entirely obvious what this regexp is here for.
Maybe a quick comment would be nice.
Also, `\w+` bit us in the past on Windows... Hopefully we have control over the spaces here... but if not, consider `.+?` for a non-greedy match.