• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

group method function in Regex

 
Rajesh k Jha
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After last letter can occur empty string.
Have a look, please:
http://java.sun.com/docs/books/tutorial/essential/regex/quant.html
 
Henry Wong
author
Marshal
Pie
Posts: 21003
77
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
 
Rajesh k Jha
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all...I got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic