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

Re: /(?<!st)/i is variable width - can we document this surprisebetter?

Thread Previous | Thread Next
From:
Abigail
Date:
August 23, 2017 13:55
Subject:
Re: /(?<!st)/i is variable width - can we document this surprisebetter?
Message ID:
20170823135704.GA6288@almanda.fritz.box
On Wed, Jul 05, 2017 at 05:11:19PM -0600, Karl Williamson wrote:
>
> '/(?<![s]t)/i'
>
> does work.

I don't think it does:

    $ perl -wE 'qr/(?<![s]t)/i'
    Variable length lookbehind not implemented in regex m/(?<![s]t)/ at -e line 1.  $

This however does seem to work:
    $ perl -wE 'qr/(?<![Ss]t)/i'
    $

which is a slight improvement over the suggestion of /(?<![Ss][Tt])/



Abigail

Thread Previous | Thread Next


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