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.
What does it mean? How to print FP009Y260KP alone from the test string?
Joined: Jan 13, 2008
Thanks Anand. Both of us should have posted almost the same time. I tried as you mentioned. System.out.println(matcher.find()); It is just printing trueBut I want to print the string FP009Y260KPThanks again.
I suggest that you should read some good regex tutorials. That will help you enrich your knowledge. Do some googling. That should do.
Also, get the differnce between the methods like matcher.find() , matcher.lookingAt() and matcher.matches(). These subtle differences are really important. [ April 03, 2008: Message edited by: Anubhav Anand ]