📄 jubb.java
字号:
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7) + this.u_m.group(8) + this.u_m.group(9), "<table width=" + this.u_m.group(2) + " style=\"filter:shadow(color=" + this.u_m.group(4) + ", direction=" + this.u_m.group(6) + ")\">" + this.u_m.group(8) + "</table>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 光晕文字([glow=宽度,颜色,边界大小]hello[/glow]) */
public String ReGlow(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[glow=)([0-9]+)([,])([^,]+)([,])([^\\]]+)(\\])(.+?)(\\[\\/glow\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7) + this.u_m.group(8) + this.u_m.group(9), "<table width=" + this.u_m.group(2) + " style=\"filter:glow(color=" + this.u_m.group(4) + ", strength=" + this.u_m.group(6) + ")\">" + this.u_m.group(8) + "</table>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 模糊文字[blur=宽度,方向,模糊度]hello[/blur] */
public String ReBlur(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[blur=)([0-9]+)([,])([^,]+)([,])([^\\]]+)(\\])(.+?)(\\[\\/blur\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7) + this.u_m.group(8) + this.u_m.group(9), "<table width=" + this.u_m.group(2) + " style=\"filter:blur(Add=0,direction=" + this.u_m.group(4) + ", strength=" + this.u_m.group(6) + ")\">" + this.u_m.group(8) + "</table>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 文字引用([quote]some text[/quote]) */
public String ReQuote(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[quote\\])(.+?)(\\[\\/quote\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3), "<hr noshade size=1 ><blockquote>" + this.u_m.group(2) + "</blockquote><hr noshade size=1>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 代码引用([code]some code[/code]) */
public String ReCode(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[code\\])(.+?)(\\[\\/code\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3), "<table bgcolor=\"black\"><tr><td><font color=white>" + this.u_m.group(2) + "</font></td></tr></table>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 文字大小控制([size=5][/size]) */
public String ReTxtSize(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[size=)([1-9])([\\]])(.+?)(\\[\\/size\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5), "<font size=" + this.u_m.group(2) + ">" + this.u_m.group(4) + "</font>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** FLASH([swf=宽度,高度]hello.swf[/swf]) */
public String ReSwf(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[swf=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/swf\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7), "<a href=\"" + this.u_m.group(6) + "\" target=\"_blank\" title=\"全屏播放\">全屏播放</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=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + "><PARAM NAME=movie VALUE=\"" + this.u_m.group(6) + "\"><PARAM NAME=quality VALUE=high><embed src=\"" + this.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=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + ">http://</embed></OBJECT>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** FLASH[shockwave=宽度,高度]hello.swf[/shockwave] */
public String ReSk(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[sk=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/sk\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.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=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + "><param name=src value=" + this.u_m.group(6) + "><embed src=\\3 pluginspage=http://www.macromedia.com/shockwave/download/ width=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + "></embed></object>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** RM视频[rm=宽度,高度]hello.swf[/rm] */
public String ReRm(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[rm=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/rm\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7), "<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + "><PARAM NAME=SRC VALUE=" + this.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=" + this.u_m.group(2) + "><PARAM NAME=SRC VALUE=" + this.u_m.group(6) + "><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** Media视频[mp=宽度,高度]hello.wmv[/mp] */
public String ReMp(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[mp=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/mp\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7), "<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + " ><param name=ShowStatusBar value=-1><param name=Filename value=" + this.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=" + this.u_m.group(6) + " width=" + this.u_m.group(2) + " height=" + this.u_m.group(4) + "></embed></object>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** QuickTime视频([qt=宽度,高度]hello.mov[/qt]) */
public String ReQt(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[qt=)([0-9]+)([,])([0-9]+)(\\])(.+?)(\\[\\/qt\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3) + this.u_m.group(4) + this.u_m.group(5) + this.u_m.group(6) + this.u_m.group(7), "<embed src=" + this.u_m.group(6) + " width=" + this.u_m.group(2) + " height=" + this.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/>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 背景音乐([sound]hello.mid[/sound]) */
public String ReSound(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("(\\[sound\\])(.+?)(\\[\\/sound\\])", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
this.u_s = this.replace(this.u_s1, this.u_m.group(1) + this.u_m.group(2) + this.u_m.group(3), "<EMBED SRC=" + this.u_m.group(2) + " HIDDEN=TRUE AUTOSTART=TRUE LOOP=TRUE>");
this.u_s1 = this.u_s;
this.u_m.find();
}
} catch (Exception e)
{
}
return u_s;
}
/** 添加空格*/
public String ReBr(String ins)
{
return this.replace(ins, "\n", "<br>\n");
}
public String ReSpace(String ins)
{
this.u_s1 = ins;
this.u_s = ins;
this.u_s2 = this.u_s1.subSequence(0, this.u_s1.length());
try
{
this.u_p = Pattern.compile("( {2,})", Pattern.CASE_INSENSITIVE);
this.u_m = this.u_p.matcher(this.u_s2);
this.result = this.u_m.find();
while (result)
{
String ss = getHtmlSpaces(this.u_m.group(1).length());
this.u_s = this.replace(this.u_s1, this.u_m.group(0) , ss);
this.u_s1 = this.u_s;
result = this.u_m.find();
}
} catch (Exception e)
{
e.printStackTrace();
}
return u_s;
}
static String space = " ";
private String getHtmlSpaces(int i)
{
StringBuffer sb = new StringBuffer(i*6);
for ( int j=0; j<i; j++)
{
sb.append(space);
}
return sb.toString();
}
public static void main(String[] argv)
{
System.out.println(JUBB.getHTML("\"\"\"", 3));
/** 文字列表([list=A]hello[/list]) */
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -