Modify regex on calculator rule