This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I think we are aligned in our studies I just posted the same question! It is very confusing I agree. Hope someone can explain the logic behind this output.
Maybe it is the terminating null character that matches the "*"? In memory the string "ab34df" is actually represented as "ab34df\0", so index 6 is the terminating null character which would match the "0 or more" expression. But that I think is a very questionable implementation of find() if this assumption is correct that find() includes the \0 and returns 'true' for it. [ September 25, 2006: Message edited by: Hans Beck�rus ]
Joined: Aug 13, 2006
Is this assumption or real scenario...? I'm confused yet...:-)