I have a text file and I want to extract the content between these two words using Java .
I am new to Java ,can anyone help me out ?
This is the method in R language to extract content between words Directions & Ingredients .
sub("."*Directions*(.*?)* Photograph.*,\\1",x)
where x
is the text content .
Can anyone tell me the corresponding code in Java
.
Thanks