I am parsing a poorly structured rss feed, and some of the data that is being returned has <p>at in it. How can I replace all instance of <p>at with an empty space, using java?
I'm familiar with the .replace method for the String class, but I'm not sure how the regex expression would look. I tried inputString.replace("<p>at", "") but that didn't work.
replace()doesn't use regex (and should thus just work).replaceAll()is the one which uses regex (which you should thus not use).replace()methods, one takingcharand other takingCharSequence(and thus alsoString). In any way, this "typo" is precisely one of the reasons why you should show an SSCCE. So that we can in essence just copy'n'paste'n'run without changes to see your problem ourselves.