Change config array with regex