jQuery in Action, 3rd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes group method function in Regex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "group method function in Regex" Watch "group method function in Regex" New topic

group method function in Regex

Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72

The output is coming 01234456
I think answer should be 0123445, i dont know where i am confusing, Can somebody please let me know where i am miising the concept of group();
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

After last letter can occur empty string.
Have a look, please:

BLOG: http://leakfromjavaheap.blogspot.com
Henry Wong

Joined: Sep 28, 2004
Posts: 20029


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72
Thanks to all...I got it
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: group method function in Regex
It's not a secret anymore!