Are you suggesting it is somehow better in Java because the syntax is shorter? Or, do you know something about the way that this is implemented in Java that makes it somehow better than the implementation in perl?

If it is the former, I'd argue that shorter syntax doesn't mean better, especially for such an infrequently used construct. Besides, if shorter syntax does mean better then Perl beats Java hands down overall. (Ever seen any Java golf? Me neither...)

If it is the latter, I'm interested in knowing what you do.

To answer your questions in order:
1. I don't know.
2. I don't think I've ever used it.
3. There is no cure. Soon you'll be making up regexes to match strings of cars on the freeway and other such nonsense.

-sauoq
"My two cents aren't worth a dime.";

In reply to Re: Possessive Quantifiers by sauoq
in thread Possessive Quantifiers by Ferret

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.