Notifications: fixed removing regex from template

- the regex is now removing also from the cached memory of all templates