> > Ok, let's use "\(.+?\)". > > > > You can still get wrong matches with the file names like "abc:123", > > but perhaps such file names are rare. > > Maybe \([A-Za-z]:\| ... > or something? It is not like there are many Unix file names starting > with a single letter followed by colon. > > But Linux has file names like > > /proc/driver/uhci/0000:00:07.2
For those files the matching will be fine. The wrong matches occur when the filename contains somewhere the pattern ":[0-9]+:" or ends with the pattern ":[0-9]+" (like Juri's example) Juri, wouldn't be good to add a comment about this in grep.el or grep.txt? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel