Pretty simple question, but this is coming from a C/C++ person getting into the intricacies of Java.
I understand I can fire up jUnit and a few performance tests of my own to get an answer; but I'm just wondering if this is out there.
Are there known difference(s) between String.replaceAll() and Matcher.replaceAll() (On a Matcher Object created from a Regex.Pattern) in terms of performance?
Also, what are the high-level API 'ish differences between the both? (Immutability, Handling NULLs, Handling empty strings, making coffee etc.)