Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt regarding patterns in regex

 
archu sweet
Ranch Hand
Posts: 66
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I just saw this in self answer test part of kathy n sierra 1.5 scjp edition....



Command line input: java Regex2 "\d*" ab34ef

output : 01234456


Doubt part : all i need to know is step by step explanation of output....i'm unable to understand as how "6" was included in output...

 
archu sweet
Ranch Hand
Posts: 66
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that was sooooo fast
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic