From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cinsk Newsgroups: gmane.emacs.help Subject: efficient regular expression that never matches Date: Fri, 20 Nov 2015 01:35:32 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1448030596 8792 80.91.229.3 (20 Nov 2015 14:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2015 14:43:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 15:43:00 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZzmtJ-0001wY-Uj for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 15:42:23 +0100 Original-Received: from localhost ([::1]:47740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzmtJ-0000RA-I0 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 09:42:21 -0500 X-Received: by 10.50.66.210 with SMTP id h18mr784423igt.9.1448012132961; Fri, 20 Nov 2015 01:35:32 -0800 (PST) X-Received: by 10.50.72.72 with SMTP id b8mr13238igv.2.1448012132907; Fri, 20 Nov 2015 01:35:32 -0800 (PST) Original-Path: usenet.stanford.edu!i2no5308223igv.0!news-out.google.com!l1ni3413igd.0!nntp.google.com!i2no5674389igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=211.216.117.163; posting-account=njEU7goAAACogg_6wI_bgyzQXAw4yM6w Original-NNTP-Posting-Host: 211.216.117.163 User-Agent: G2/1.0 Injection-Date: Fri, 20 Nov 2015 09:35:32 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215873 X-Mailman-Approved-At: Fri, 20 Nov 2015 09:42:11 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108165 Archived-At: hi, Is there any special regular expression string that never matches anything? I'm thinking of "$a", but it should scan all the string until end of the string, so it may not be efficient. Is there any short, efficient regular expression that never matches anything? (it's okay with Emacs-specific regular expression, since I'm going to use it with `directory-files' or `string-match' function) Thank you.