⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datafilter.java

📁 留言簿:通过在Tomcat服务器下建立一个简易的留言簿网站应用小程序
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<sub>" + u_m.group(2) + "</sub>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReDelLine(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[s\\])(.+?)(\\[\\/s\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<s>" + u_m.group(2) + "</s>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReFliph(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[fliph\\])(.+?)(\\[\\/fliph\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<table style=\"filter:fliph\">" + u_m.group(2) + "</table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReFlipv(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[flipv\\])(.+?)(\\[\\/flipv\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<table style=\"filter:flipv\">" + u_m.group(2) + "</table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReLi(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[list=)([^\\]]+)([\\]])(.+?)(\\[\\/list\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5), "<ol type=" + u_m.group(2) + ">" + u_m.group(4) + "</ol>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReLi1(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[list\\])(.+?)(\\[\\/list\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<ul>" + u_m.group(2) + "</ul>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReLi2(String s)
    {
        return replace(s, "[*]", "<li>");
    }

    public String ReShadow(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[shadow=)([0-9]+)([,])([^,]+)([,])([^\\]]+)(\\])(.+?)(\\[\\/shadow\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7) + u_m.group(8) + u_m.group(9), "<table width=" + u_m.group(2) + " style=\"filter:shadow(color=" + u_m.group(4) + ", direction=" + u_m.group(6) + ")\">" + u_m.group(8) + "</table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReGlow(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[glow=)([0-9]+)([,])([^,]+)([,])([^\\]]+)(\\])(.+?)(\\[\\/glow\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7) + u_m.group(8) + u_m.group(9), "<table width=" + u_m.group(2) + " style=\"filter:glow(color=" + u_m.group(4) + ", strength=" + u_m.group(6) + ")\">" + u_m.group(8) + "</table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReBlur(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[blur=)([0-9]+)([,])([^,]+)([,])([^\\]]+)(\\])(.+?)(\\[\\/blur\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7) + u_m.group(8) + u_m.group(9), "<table width=" + u_m.group(2) + " style=\"filter:blur(Add=0,direction=" + u_m.group(4) + ", strength=" + u_m.group(6) + ")\">" + u_m.group(8) + "</table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReQuote(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[quote\\])(.+?)(\\[\\/quote\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<hr noshade size=1 ><blockquote>" + u_m.group(2) + "</blockquote><hr noshade size=1>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReCode(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[code\\])(.+?)(\\[\\/code\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<table bgcolor=\"black\"><tr><td><font color=white>" + u_m.group(2) + "</font></td></tr></table>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReTxtSize(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[size=)([1-9])([\\]])(.+?)(\\[\\/size\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5), "<font size=" + u_m.group(2) + ">" + u_m.group(4) + "</font>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReSwf(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[swf=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/swf\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7), "<a href=\"" + u_m.group(6) + "\" target=\"_blank\" title=\"\u5168\u5C4F\u64AD\u653E\">\u5168\u5C4F\u64AD\u653E</a><br><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=" + u_m.group(2) + " height=" + u_m.group(4) + "><PARAM NAME=movie VALUE=\"" + u_m.group(6) + "\"><PARAM NAME=quality VALUE=high><embed src=\"" + u_m.group(6) + "\" quality=high pluginspage='<img align=absmiddle src=pic/url.gif border=0><a target=_blank href=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'</a> type='application/x-shockwave-flash' width=" + u_m.group(2) + " height=" + u_m.group(4) + ">http://</embed></OBJECT>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReSk(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[sk=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/sk\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7), "<object classid=clsid:166B1BCA-3F9C-11CF-8075-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0 width=" + u_m.group(2) + " height=" + u_m.group(4) + "><param name=src value=" + u_m.group(6) + "><embed src=\\3 pluginspage=http://www.macromedia.com/shockwave/download/ width=" + u_m.group(2) + " height=" + u_m.group(4) + "></embed></object>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReRm(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[rm=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/rm\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7), "<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=" + u_m.group(2) + " height=" + u_m.group(4) + "><PARAM NAME=SRC VALUE=" + u_m.group(6) + "><PARAM NAME=CONSOLE VALUE=Clip1><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT><br><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=30 id=video2 width=" + u_m.group(2) + "><PARAM NAME=SRC VALUE=" + u_m.group(6) + "><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReMp(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[mp=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/mp\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7), "<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=" + u_m.group(2) + " height=" + u_m.group(4) + " ><param name=ShowStatusBar value=-1><param name=Filename value=" + u_m.group(6) + "><embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=" + u_m.group(6) + " width=" + u_m.group(2) + " height=" + u_m.group(4) + "></embed></object>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReQt(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[qt=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/qt\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5) + u_m.group(6) + u_m.group(7), "<embed src=" + u_m.group(6) + " width=" + u_m.group(2) + " height=" + u_m.group(4) + " autoplay=true loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#000000 kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    public String ReSound(String s)
    {
        u_s1 = s;
        u_s = s;
        u_s2 = u_s1.subSequence(0, u_s1.length());
        try
        {
            u_p = Pattern.compile("(\\[sound\\])(.+?)(\\[\\/sound\\])", 2);
            u_m = u_p.matcher(u_s2);
            result = u_m.find();
            while(result) 
            {
                u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<EMBED SRC=" + u_m.group(2) + " HIDDEN=TRUE AUTOSTART=TRUE LOOP=TRUE>");
                u_s1 = u_s;
                u_m.find();
            }
        }
        catch(Exception exception) { }
        return u_s;
    }

    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -