6 strip : /<[a-zA-Z\/][^<>]*>/g, // strip HTML tags
7 clean : /[0-9.(),;:!?%#$¿'"_+=\\/-]+/g, // regexp to remove punctuation, etc.
8 count : /\S\s+/g // counting regexp
14 var t = this, w = $('.word-count'), tc = 0;
21 setTimeout( function() {
23 tx = tx.replace( t.settings.strip, ' ' ).replace( / | /gi, ' ' );
24 tx = tx.replace( t.settings.clean, '' );
25 tx.replace( t.settings.count, function(){tc++;} );
27 w.html(tc.toString());
29 setTimeout( function() { t.block = 0; }, 2000 );
34 $(document).bind( 'wpcountwords', function(e, txt) {