bao110908 (long teeth, and it hurts) still there?

Category: Java SE
 
anycloud
2013-07-19 12:29:15

Sponsored Links
Just forgot to ask for a place to
If yes 0006 # E0000 # E0200 # E0201 # Replace 0006 # E0201 # how to write is in the middle of all do not

Sponsored Links

hbb88
2013-07-19 12:39:16
String str = "[choose the timing] {sunny weekend afternoon, evening} [Select premises] {} ordinary buildings [modus operandi] {window drill}";
String [] strs = ; str.split ("(? <= \ \}) (? = \ \ [)");
for (String s: strs) {
System . out.println (s);
}
lihao88888888
2013-07-19 12:47:48
strs [i]. replaceAll ("^ (\ \ d {4}) (#) (. *) (# \ \ w * #) $ "," $ 1 $ 4 ");

can you give it a try?
diamondlk
2013-07-19 12:56:00
This is on top of the trouble you .. can
also add points to give you trouble seems my own carefully study regularization of ....
If this is the string:
String = "[choose the timing] {sunny weekend afternoon, evening} [Select premises] {} ordinary buildings [modus operandi] {window drill } "
to split into
a [0] = '[choose the timing] {sunny weekend afternoon, evening}';
a [1] = '[select premises] { Common building} [modus operandi] {window drill} ';
this should be easy, right?
yiheben
2013-07-19 01:00:19
demolished through the brackets, then a [1] =' [Select premises] {} ordinary buildings [modus operandi] {window drill} '; which also has a square brackets?
yaya5181666
2013-07-19 01:04:47
a [0] = '[choose the timing] {sunny weekend afternoon, evening}';
a [1] = '[select premises] {ordinary buildings}'
a [2] = '[modus operandi] {window drill}';
just anxious to press the square brackets like
leewenchun19870202
2013-07-19 01:11:20
(? <= \ \ }) matches "}" after the gap; (? = \ \ [) matches "[" in front of the gap, so that together, that is, from "} [" where the gap between separate.
ysj19881015
2013-07-19 01:26:03
work, go home myself ~ ~, bye!
kxscr
2013-07-19 01:34:28
Oh ok, finally doing a good job thank you very much
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.