define( function() { // Match a standalone tag return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ ); } );
info at phpclasses dot org