From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-relay-1.mv.us.adobe.com ([130.248.1.1]) by hawkwind.utcs.toronto.edu with SMTP id <2732>; Tue, 8 Dec 1992 23:31:03 -0500 Received: by mail-relay-1.mv.us.adobe.com; id AA04514; Tue, 8 Dec 92 20:30:50 -0800 Received: by utopia.mv.us.adobe.com (NeXT-1.0 (From Sendmail 5.52)/NX3.0S) id AA08969; Tue, 8 Dec 92 20:28:27 PST Date: Tue, 8 Dec 1992 23:28:27 -0500 From: Paul Haahr Message-Id: <9212090428.AA08969@utopia.mv.us.adobe.com> To: schwartz@groucho.cs.psu.edu Subject: Re: regexps Cc: sam-fans@hawkwind.utcs.toronto.edu beginning of word: (^|[^a-zA-Z0-9]) end of word: ($|[^a-zA-Z0-9]) 'course, you still have to narrow dot by one then. your definition of word may be different from mine, of course, so, maybe (^|[ \t]) and ($|[ \t]) would be more appropriate. (i don't think sam takes \t, but it's much clearer for purposes of the example.)