Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] emacs query/replace and the string that would not bestrung



>>>>> "TL" == Tony Laszlo <laszlo@example.com> writes:

    TL> and do I really want to know 
    TL> why the ampersand does not 
    TL> need to be escaped? 
    TL> just because? :)

Because it is a regular character. Backslash, on the other hand, is
special and if present (and not escaped by another backslash) makes
the following character special too. So, `&' will match `&', and `\&'
will match nothing because it is not a valid special sequence.

Hope I put it right. Please also see "Syntax of Regular Expressions"
section of emacs manual.

Viktor


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links