File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Regex Question from K&B 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 "Regex Question from K&B" Watch "Regex Question from K&B" New topic

Regex Question from K&B

ayush raj
Ranch Hand

Joined: Jan 15, 2012
Posts: 60
Given the command line invocation: java regex2 "\d*" ab34ef
What is the output of following code :

Answer given is : 01234456

Couldn't get it !! Please someone explain .
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Check the ScjpFaq; there's an entry for this.
I agree. Here's the link:
subject: Regex Question from K&B
It's not a secret anymore!