This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 ]