I was going through the
SCJP book into the section of regex. It first states that of the following greedy quantifiers:
* - zero or more
+ - one or more
? - zero or one
On the topic of 'greedy' quantifiers, it then describes reluctant quantifiers:
?? - one or zero
*? - zero or more
+? - one or more
Are those signs somehow derived from greedy quantifiers? Or is it something like the !(inverse) and !=(not equals) signs, where both ! marks are totally unrelated? It seems to me, that the ? in the reluctant is unrelated, rather than buliding up some logic, like one or zero AND one or zero in the first line of the reluctant.
I know this is not present on the exam, but still, it helps to clarify.