fork(12) download
  1. public class Main
  2. {
  3. public static void main(String[]args)
  4. {
  5. String s= "The#red#studio#502#4";
  6. // String[] array = s.split("#(?=[0-9])");
  7. String[]array = s.split("#\\d");
  8. for(String str : array)
  9. {
  10. System.out.println(str.replace('#',' '));
  11. }
  12. }
  13. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
The red studio
02