"*" selector for attributes?

"*" selector for attributes?

I'm trying to write a simple little script that will write an alert if any attribute in any tag contains a specific string of characters.

I can get the code to work if I have a specific attribute:

   var $checkDev = $("*[src*='stagingServer']");
   if($checkDev.size() > 0){
   alert("This page contains links to the staging server!")
   };


But I can't find a way to use */any attribute rather than a specific attribute. Ideally it'd be something like $("*[**='charString']") which obviously doesn't work.

Does anyone know of something like this that's already written into JQuery?

I don't think that any of the traversing functions will check inside attributes, right?