fixing annoying regex