It is ok I have found the good one substitution for me but I am
amazing that perl is not as clever as vimscript regex in limitation of
assertions.

ex : perl is lost when I want to say that a digit has to not be
preceed by this sentence :
<aWord><aCharacter><aComma><aNumberOfUndefinedSpaces>
/(?<!FRUIT.;\s*)\b(\d+)
                    |_______________________the pb is here



On 2 juil, 20:30, [EMAIL PROTECTED] (Dr.Ruud) wrote:
> epanda schreef:
>
> > I want to replace my pattern by the corresponding value of the key
> > in the hash table [...]
> > with a single %s/pattern/hashpattern/g  expression
>
> Why that last condition? Sounds like homework.
> And is unsound: often you want to do the longest possible change first.
>
> --
> Affijn, Ruud
>
> "Gewoon is een tijger."


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to