How to find text between two strings?
In this example we'll use the
StringUtils.substringBetween() method. Here we'll extract the title and body of our HTML document. Let's see the code.
By print out the title and content we'll see something similar to:
title = Hello World from Java
content = Hello, today is: Tue Apr 08 07:02:39 ICT 2008