save this regexp in the outer scope so it's not compiled every time this function runs