Update regex to fit magic quotes