SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
David Newton wrote:Did you read the link Rob provided? Note that in your original example you already *have* a quantified, the asterisk *... I'm not sure why you'd use a ? Or + after it
David Newton wrote:what happened when you tried it?
Mike Simmons wrote:
David Newton wrote:Did you read the link Rob provided? Note that in your original example you already *have* a quantified, the asterisk *... I'm not sure why you'd use a ? Or + after it
Umm, those are addressed in the link Rob provided. Plain * is a greedy quantifier, 0 or more times. *? is a reluctant quantifier, zero or more times. *+ is a possessive quantifier, zero or more times.
| Consider Paul's rocket mass heater. |