Fixed regex for matching IDs (missing a few backslashes)