in reply to Re: substitution with exceptions
in thread substitution with exceptions
might work, but if you need to exclude both, you can't use(?<!n)'t
You can specify them one by one, though:(?<!aren|isn)'t Variable length lookbehind not implemented in regex m/(?<!aren|isn)'t/
(?<!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 |