wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes doubt regarding patterns in regex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "doubt regarding patterns in regex" Watch "doubt regarding patterns in regex" New topic
Author

doubt regarding patterns in regex

archu sweet
Ranch Hand

Joined: Mar 07, 2011
Posts: 66

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...

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18760
    
  40

http://www.coderanch.com/how-to/java/SCJP-FAQ#kb-regexp


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
archu sweet
Ranch Hand

Joined: Mar 07, 2011
Posts: 66

Thanks that was sooooo fast
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: doubt regarding patterns in regex