in reply to Re: remove tilda from filenames with 1 liner
in thread remove tilda from filenames with 1 liner

What's the difference between \z and $

gav^

  • Comment on Re: Re: remove tilda from filenames with 1 liner

Replies are listed 'Best First'.
Re: Re: Re: remove tilda from filenames with 1 liner
by japhy (Canon) on Jan 22, 2002 at 07:22 UTC
    You should really consult perlre for this. $ can match before a newline at the end of the string, whereas \z matches only at the absolute end of a string. If you have a file that ends in a newline, this is important.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;