I'm trying to figure out how to use delimiter patterns in Java. I have tried googling and searching stack overflow but I can't find anything that answers my questions. How do you set patterns for useDelimiter? I'm trying to set a delimiter that separates text once it finds < and delimits to >. So in a string of text "this is text" it will separate "this is " "' "text". I tried
src.useDelimiter("<->");
and many other combinations. I see people using [] and ^ but I don't know what this means. is there some guide for making these patterns?
Aucun commentaire:
Enregistrer un commentaire