Python Insert Variable Into Regex Javascript Example Push Or Pull