Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列がblah-*-bleh-*-bloh あり、それを分割したい-*-ので、(とりわけ)試しました:
blah-*-bleh-*-bloh
-*-
res.split("/-\\*-/g");
しかし、それは機能していません。誰にもアイデアがありますか?
/Java では、 before と/gafterは必要ありません。
/
/g
String[] splittedArray = res.split("-\\*-");