I think you have to escape @regex on these two lines.