From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: How to search a whole word in emacs? Date: Fri, 23 Nov 2007 00:26:15 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <1193422116.266878.76080@z24g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195807243 30471 80.91.229.12 (23 Nov 2007 08:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2007 08:40:43 +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 23 09:40:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IvU5g-000811-CM for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2007 09:40:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvU5R-0006F9-K9 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2007 03:40:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s36g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 84 Original-NNTP-Posting-Host: 69.236.97.82 Original-X-Trace: posting.google.com 1195806375 4794 127.0.0.1 (23 Nov 2007 08:26:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 23 Nov 2007 08:26:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s36g2000prg.googlegroups.com; posting-host=69.236.97.82; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12, gzip(gfe), gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:153995 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49425 Archived-At: David Combs wrote: <<...Mastering Regular Expressions, By Jeffrey E. F. Friedl... To convince her and others to get it, how about some comments from those who've got the book?>> I read it in its entirety in 1999. (first edition) I think it is a excellent book. However, i don't think it as a practical, necessary, book, for average professional programers who works with text a lot (such as web app developers and sys admins). Because: * in my extensive use of regexes, daily, since about 1998 working in the web application industry and sys admin, i only need to use advanced regex maybe once or twice a year. * most complex regexes needs, are more practical to be implemented by breaking down into 2 patterns to test on (as opposed to a single complex regex). * when you need advanced regexes, the regex very quickly cannot handle the job. You need either to break it into several regexes with nested if statements, or you need a parser. in the above, by "advanced regexes" i mean non-grouping constructs of the form (?...), boundary anchors, nested patterns... etc. ------------------- related articles i've wrote: * Pyhton Regex Documentation: String Pattern Matching (complete rewrite of python's re module doc.) http://xahlee.org/perl-python/python_re-write/lib/module-re.html * Simple intro to emacs's regex http://xahlee.org/emacs/emacs_regex.html * Emacs Lisp regex doc http://xahlee.org/elisp/Regular-Expressions.html Xah xah@xahlee.org $B-t(B http://xahlee.org/ > To convince her and others to get it, how about > some comments from those who've got the book? On Nov 22, 4:44 pm, dkco...@panix.com (David Combs) wrote: > Amy Templeton wrote: > ... > > > > >For more information, the section in the Info system on regexps is useful. > > >Amy > > For *VASTLY* more information, plus examples galore, plus explanations, > etc, don't even think of using regexps without first acquiring the book > (well, "bible"): > > Mastering Regular Expressions, 2nd Edition > By [54]Jeffrey E. F. Friedl > 2nd Edition July 2002 > 0-596-00289-0, Order Number: 2890 > 484 pages, $39.95 US $61.95 CA #28.50 UK > > Much cheaper (eg 40% off) atwww.bookpool.com. > > This book is the regexp-bible for the planet -- covers > emacs, perl, php, egrep, java, you name it. > > Scan through the book, and you won't understand how you > thought you knew what you were doing before you got the book. > > To convince her and others to get it, how about > some comments from those who've got the book? > > THANKS! > > David