Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!rutgers!apple!vsi1!wyse!td2cad!mipos3!pinkas From: pinkas@hobbit.intel.com (Israel Pinkas ~) Newsgroups: gnu.emacs Subject: Re: Matching multiple lines with regex Message-ID: Date: 15 Mar 89 21:34:32 GMT References: <768@pcsbst.UUCP> Sender: news@mipos3.intel.com Organization: Corporate CAD, INTeL Corporation, Santa Clara, CA Lines: 35 In-reply-to: jkh@pcsbst.UUCP's message of 11 Mar 89 16:27:31 GMT In article <768@pcsbst.UUCP> jkh@pcsbst.UUCP (jkh) writes: > I'm using the regex code out of 18.52 and would like to construct a > regular expression that will match *all* of the characters in a string > of text containing newlines. I tried ".*" (the most obvious), but it > just matches up to the first newline. I haven't got newlines being treated > specially in any way (I.E. as "or"s) so I can't figure out why this is > happening. The regular expression for . is defined to match any single character except a newline. See the GNU Emacs manual, section 13.5, "Syntax of Regular Expressions." Also see the man page for grep, vi, sed, or any other Unix program that uses regular expressions. -Israel Pinkas -------------------------------------- Disclaimer: The above are my personal opinions, and in no way represent the opinions of Intel Corporation. In no way should the above be taken to be a statement of Intel. UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cadev4!pinkas ARPA: pinkas%cadev4.intel.com@relay.cs.net CSNET: pinkas@cadev4.intel.com -- -------------------------------------- Disclaimer: The above are my personal opinions, and in no way represent the opinions of Intel Corporation. In no way should the above be taken to be a statement of Intel. UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cadev4!pinkas ARPA: pinkas%cadev4.intel.com@relay.cs.net CSNET: pinkas@cadev4.intel.com