From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: search for time stamp Date: Sun, 28 Sep 2003 11:42:39 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86oex5w8og.fsf@slowfox.dyndns.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064742647 1282 80.91.224.253 (28 Sep 2003 09:50:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2003 09:50:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 11:50:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3YCT-000281-00 for ; Sun, 28 Sep 2003 11:50:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3YCP-0003Gz-QY for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Sep 2003 05:50:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3YC7-0003Ei-OI for help-gnu-emacs@gnu.org; Sun, 28 Sep 2003 05:50:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3YC6-0003D4-48 for help-gnu-emacs@gnu.org; Sun, 28 Sep 2003 05:50:22 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3YC5-0003Bj-I2 for help-gnu-emacs@gnu.org; Sun, 28 Sep 2003 05:50:21 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A3YC4-0006dc-00 for ; Sun, 28 Sep 2003 11:50:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3Y4d-0006ZN-00 for ; Sun, 28 Sep 2003 11:42:39 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A3Y4d-0000BO-00 for ; Sun, 28 Sep 2003 11:42:39 +0200 Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:BaDpaGwCvDeIIxS0e27Q6PwlUf0= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:12846 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12846 Zimmen Gnauh writes: > use (re-search-forward "^??/??/?? ??:??:??:") to search for a That look like a shell glob. In shell globs, ? stands for any single character (except /), whereas * stands for zero or more characters (except /). Regular expressions work differently: . stands for any single character (except newline), and ?, + and * are suffixes. a? means zero or one occurrences of a. a+ means one or more occurrences of a. a* means zero or more occurrences of a. Thus, ".*" means zero or more occurrences of any character, which is similar to the shell glob "*". And "." means any single character, which is similar to the shell glob "?". -- Two cafe au lait please, but without milk.