I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start

I have some text in a String and for example I need to search through it and store everything between <title> and </title> in another string

If anyone could give me an Idea or point me in the right direction like a java Library that could help me with this I would appreciate it.

Detail out your problem, I ain't getting from this description what it is that you want to do exactly.

Thanks Ezzaral you've pointed me in the right direction and i'am making good progess