Regular expression to remove a substring between two characters

前端 未结 3 1398
温柔的废话
温柔的废话 2021-02-13 13:25

I want to remove anything between < and > including (< and >) from my string with regular expression. Here are fe

3条回答
  •  轮回少年
    2021-02-13 14:29

    Give this code segment a try!

    String str = "Hiandtest";       
    
    for (int i = 0; i < str.split("").length; i++)
      System.out.println(str.split("")[i]);
    

提交回复
热议问题