Refine_String.js 617 Bytes
exports.refine_String = function(readData)
{
    var text;
    text = readData.replace(/[0-9]/g,"");
    text = text.replace(/[一-龥]/g,"");
    text = text.replace(/[\[]+[ㄱ-힣A-z一-龥0-9]+[\]]/g,"");
    text = text.replace(/[\[]+[절 羅]+[\]]/g,"");
    return text;
};

exports.refine_String_Last = function(readData)
{
    var text;
    text = readData.replace(/[^ㄱ-힣 ]/g,"");
    return text;
};

exports.refine_String_for_Okt = function(readData)
{
    var text;
    text = readData.replace(/[br]/g,"");
    text = text.replace(/[\W]/g,"");
    text = text.replace(/[A-z]/g,"");
    return text;
};