I am working on an application that will look through files and grab a
string out of file that is bracketed by known special characters.
Example: XXX The sky is blue XXX
Needed Result: The sky is blue
I tried a replaceAll and the characters on the line previous to the special characters were not removed. I need to parse everything before and everything after to leave me with only what is in between.
Does anyone have an idea how to do this? I am using
java 1.4
Thanks