Fixed missing capturing group part in regex. Added unit test to match that case.