in reply to Re: substitution with exceptions
in thread substitution with exceptions

Negative look-behind only works for fixed length patterns, "aren" and "isn" are of different lengths.
(?<!n)'t
might work, but if you need to exclude both, you can't use
(?<!aren|isn)'t Variable length lookbehind not implemented in regex m/(?<!aren|isn)'t/
You can specify them one by one, though:
(?<!aren)(?<!isn)'t
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: substitution with exceptions
by LanX (Saint) on Sep 27, 2018 at 19:45 UTC
    Tsk, you replied to the king of updates without checking ?

    ;-p

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice