I want to remove anything between < and > including (< and >) from my string with regular expression. Here are fe
<
>
Give this code segment a try!
String str = "Hiandtest"; for (int i = 0; i < str.split("?[a-z]+>").length; i++) System.out.println(str.split("?[a-z]+>")[i]);