Added regex for ifelse new and update