searching for a word in a string
I have a project to do and i am very new to java. i need to search for a word or couple of words in a string and print out the characters that come after this word till the next empty line.
for example we give : "meets the back."
and the string would be:
"The height of horses is measured at the highest point of the withers, where the neck meets the back.
The English-speaking world measures the height of horses in hands (abbreviated "h" or "hh", for "hands high") and inches. One hand is equal to 101.6 millimetres.
The general rule for height between a horse and a pony at maturity is 14.2 hands (58 inches, 147 cm). An animal 14.2 h or over is usually considered to be a horse and one less than 14.2 h a pony."
it should print out the red lines shown.
any help would be appreciated.