Change reguler expression on edit