This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If I need to replace a particular pattern in a String, I can use the replaceAll() method and that pattern will be replaced everywhere. But what should I do if I just need to print how many times that particualr pattern occurred in the String? Please give me pointers in this regards. Thanks [ August 02, 2005: Message edited by: Shikha Sarna ]