In java I'm reading several lines from an HTML file and in it I have to pull some data and store in variables. And to remove this data I have to remove some tags and data that are within certain patterns.
For example, to remove the tags I use replaceAll("\<.*?>", "");
, but now I need to remove from String everything inside parentheses. I tried to use the code replaceAll("\(.*?)", "");
, but it did not work very well.