help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: regexp on emacs how to...


From: Thorsten Jolitz
Subject: Re: regexp on emacs how to...
Date: Mon, 01 Sep 2014 11:14:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> In cases like this, regexp-builder can often be useful. Go to the buffer
> containing your RTF text, M-x regexp-builder, and then start building
> your regexp incrementally. Many times this is enough to show you what
> was wrong with the original one.

Indeed, a very useful library. 

Only caveat in this case: when using [^\000]+ in a regexp and calling
'reb-copy', it is converted to a literal NUL char [^^@]+, which works
perfectly for regexp matching, but makes GIT think your .el file is a
binary file.

I had this problem and had to change all [^^@]+ back to [^\000]+ to
enable correct VC on these files again ... (including some renaming
workarounds). 

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]