It sounds like you are asking if rules has a condition that will search all existing user notifications for a particular string, but it does not. Of course, that could be checked using a custom piece of php code that loaded the users notifications and iterated on them while searching for a string in their content, however, that is not an out of the box stock action.