If i want to use regex to find either “<” or “>” within a string and split the string based on either “<” or “>”, how would i do that?
for instance i may have a string that looks like this:
String str = <name> hello bob, how are you today </name>
i found these two links, but i still feel confused:
link 1
link 2
str.split("[<>]");The brackets means you’ll match any characters inside them.