On Fri, Aug 22, 2014 at 12:21 PM, Thorsten Jolitz <[email protected]> wrote:
> foo.el and other libraries of mine contains regexps with a technique I
> stole from the Org developers: match every possible char with
>
> ,----
> | "[^^@]+"
> `----
>
> with ^@ being the NULL character entered with C-q.

By the way, you should be able to use lisp string escape syntax
instead of a literal NUL: "[^\0]+".

Also, wouldn't this fail to match NUL chars? (rx (1+ anything)) gives
"\\(?:.\\|\n\\)+", seems like that would be better...

-- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to