jQuery in Action, 3rd edition
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: 42959
Check the ScjpFaq; there's an entry for this.
I agree. Here's the link: http://aspose.com/file-tools
subject: Regex Question from K&B
jQuery in Action, 3rd edition