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

This thread has been viewed 664 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 21, 2018 12:57:24.