This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 18765
    
  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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt regarding patterns in regex