From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: regular expression Date: Mon, 30 Jun 2014 23:36:22 +0300 Message-ID: <874mz2dtix.fsf@mithlond.arda> References: <871tu6b1uw.fsf@debian.uxu> <87r4269mwa.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1404160628 17140 80.91.229.3 (30 Jun 2014 20:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2014 20:37:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 30 22:37:01 2014 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 1X1iJu-00033F-W6 for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2014 22:36:59 +0200 Original-Received: from localhost ([::1]:36533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1iJu-0004OO-LP for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2014 16:36:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1iJd-0004OG-Kj for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 16:36:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1iJX-0006cN-Ka for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 16:36:41 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.198]:32988 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1iJX-0006b0-Aj for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 16:36:35 -0400 Original-Received: from mithlond.arda (84.251.136.59) by jenni2.inet.fi (8.5.140.03) id 53A17F6000E638DC for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 23:36:28 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1X1iJP-00052p-KI for help-gnu-emacs@gnu.org; Mon, 30 Jun 2014 23:36:27 +0300 In-Reply-To: <87r4269mwa.fsf@debian.uxu> (Emanuel Berg's message of "Mon, 30 Jun 2014 22:13:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.71.2.198 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:98465 Archived-At: --=-=-= Content-Type: text/plain Emanuel Berg [2014-06-30 22:13:09 +02:00] wrote: > Emanuel Berg writes: >> Note that [A-Z] matches [a-z] as well (the lowercase equivalent) >> unless the variable case-fold-search is nil. > > It seems this isn't so. Well, all the better as it is less confusing. > [A-Za-z] is all the a-z chars in both upper- and lowercase, and [A-Z] > isn't [a-z]. It's very likely that when one writes [A-Za-z] he actually means "match any letter". So it's often better to write [[:alpha:]] instead since it also matches other letters than A-Z. Sometimes a good option is \w which matches word-constituent characters as defined in the current syntax table. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJTscpGAAoJEHGdadMkU5RQXIAQALS9RI0XDiFruTz5B42lDURP +nmgepDZFEKNUHVIa7yQRqmykVCnK+9cDcMByspR2KTY98yVcy/K2+oQ9OKH3Ps2 FYXqPFluFYMGdmzmvJVpMik7IfL0pQLo54MKzH3IvVO1fucDB6wn0lH/BJz1vmae QcJChvyuV7I8HpSCRpAot86UMLx0xoZla0o5LaQF2ctJg7qIB7kM9mhhRx09Z1jY ZWX+DAu7tVvfcqMZyG1VOSiahWtYnJiXXt2uHZNLD14K7QP1XfzpfIs2mBS65Iq6 y9Gf6zp+rbrbzLkDFskjt703TQugDXSEda7fxSiRwxVDa+mErkDqGYnZZvVLf7GE PfEqPGMOj/lu/Q6jONTZlnj3Jhot/TK7ep7T89Fr0NOBzmJQOP3GMgH0Pc2DDKLE msiUr4Vzt9yU05GmxwYX0OujjPJ8WU5XVESsd0ISD8hWoD0B4n/s/VaXOgPWfw/t 0VeoZ7r+IK+nTzEt2De9b8/qE0kAH/2LETX8OMSRBw5sGgzASUb1SFEtI9DCp2Sl /hMJx3+53NorZhpApnu+32lZxPpOaLQtlHcAmrOPSg60pNZvsulhBA1mAsQkSRYA 9k0xY3rG+CygIEGe3DH1pgW8zqOhckNQizmm5OsJ/gYOWAiW12y3M86NN1BNS8oA 3nmA9CdiaGk8SmlPoWjU =RW8n -----END PGP SIGNATURE----- --=-=-=--