[Logo]
Forums Register Login
Greedy quantifiers(*)
Hi Ranchers!


java Regex2 "\d*" ab34ef

Output:01234456

I am unable to interpret the last part of the output esp at"456".
So,please help me in understanding it.

Source:SCJP 6 study java guide, Kathy sierra and Bert bates, Self Test,Page 515.

Thanks in advance!


Run this and try to understand it is very simple.
This question is answered comprehensively in FAQ. The link is in my signature...
A berm makes a great wind break. And Iwe all like to break wind once in a while. Like this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 640 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 16, 2018 16:11:28.