Quote:
Originally Posted by testbot
i think so. the rest really just removes spaces and stuff. give it a try and let me know how it works.
i'll be updating this soon because there's still a few slight bugs. if that works i'll incorporate that into the code.
|
Fixed, it adds Greek tags and english
here is the solution :
Code:
function updateTagger(){
var subject = document.vbform.subject.value.replace(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"");
subject = subject.replace(/(\b(\w{1,2})\b(\s|$))|(\b(\w{19,})\b(\s|$))/g,"");
var newtaglist = filterText(subject);
newtaglist = trim(newtaglist);
newtaglist = newtaglist.replace(/\s+/g," ");
document.vbform.taglist.value = newtaglist.replace(/ /gi,",");
and here is the fixed RegExp
Code:
(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"")
This is the attached file for unicode (including greek) and english languages