develooper Front page | perl.perl5.porters | Postings from August 2000

Re: Proposal for \v and \V, the small- and large- cut regex operators.

From:
simon
Date:
August 9, 2000 03:53
Subject:
Re: Proposal for \v and \V, the small- and large- cut regex operators.
Message ID:
slrn8p2e0q.beq.simon@justanother.perlhacker.org
Jeffrey Friedl (lists.p5p):
>Mmmm, I think this is still a bit premature. Before the section on
>backtracking is ripped out, don't you think that it's important that
>there's some section in there that describes completely how the user should
>construct regular expressions, 

I'm hoping, if p5p approves, that that's what the How REs Fit Together
section will turn into. Please also don't forget we have perlretut and
perlrequick as well, which are rather comprehensive.

> and how Perl will consider them?

Again, that's what perlreguts will turn into, as well as more
descriptions of just what all these NFAs and DFAs and TLAs are.

>Currently, the "Combining pieces together" section (renamed by Simon to "How
>regexps fit together") doesn't give a clue as to why
>    "aaaaaaa" =~ m/(a+)\1/'
>matches what it does, much less something like:
>    "abcdefgfedcba" =~ m/((?>[abc]+))*.*?\1/

That's because it isn't finished! I just threw that out as a taster.
If people want me to sit down and explain *both* the how and the why of
regular expressions, I'm more than happy to do so. Will write
documentation for food, money, or Perl. :)

-- 
"Even had to open up the case and gaze upon the hallowed peace that 
graced the helpdesk that day." -- Megahal (trained on asr), 1998-11-06



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About