Need help refactoring this jquery snippet
<p>I'm almost embarrassed to say that I can't figure out a better way to do this. Can someone help me with refactoring this code? I tried doing a few "or" operators in one match function, but it didn't seem to take em.</p>

<pre><code>$('.ui-icon-pencil, .ui-icon-check, .ui-icon-close, .ui-icon-trash').hover(function(e) {          

    console.log($(this).attr('class'));

    optionsClass = 'ui-icon-pencil';
    confirmClass = 'ui-icon-check';
    closeClass = 'ui-icon-close';
    deleteClass = 'ui-icon-trash';

    icon = $(this).attr('class').match(optionsClass);

    if(icon == null) {
    icon = $(this).attr('class').match(confirmClass);
    }
    if(icon == null) {
    icon = $(this).attr('class').match(closeClass);
    }
    if(icon == null) {
    icon = $(this).attr('class').match(deleteClass);
    }

    console.log('icon = '+icon);

});
</code></pre>
