From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay3.UU.NET ([192.48.96.8]) by hawkwind.utcs.utoronto.ca with SMTP id <24107>; Fri, 4 Aug 1995 15:12:36 -0400 Received: from uucp3.UU.NET by relay3.UU.NET with SMTP id QQzbjg01864; Fri, 4 Aug 1995 15:12:27 -0400 Received: from rexago8.UUCP by uucp3.UU.NET with UUCP/RMAIL ; Fri, 4 Aug 1995 15:12:19 -0400 Received: by summitis.com (smail2.5) id AA18105; 4 Aug 95 14:56:23 EDT (Fri) Received: from summitis.com by rserv1.summitis.com; Fri, 4 Aug 1995 14:55 EDT Received: from cheetah by rexsrvr2.summitis.com (AIX 3.2/UCB 5.64/4.03) id AA08749; Fri, 4 Aug 1995 14:54:56 -0400 Received: by cheetah (AIX 3.2/UCB 5.64/4.03) id AA18826; Fri, 4 Aug 1995 14:54:55 -0400 From: hc05@summitis.com Message-Id: <9508041854.AA18826@cheetah> X-Mailer: exmh version 1.6 4/21/95 To: sam-fans@hawkwind.utcs.toronto.edu Subject: Matching shortest string in se's Date: Fri, 4 Aug 1995 15:54:54 -0400 Content-Type: text Is there an easy way that I have missed to match blocks of code bounded by tags of multiple characters using sam? Examples would be C comments (/*..*/) or HTML tags (
...
). I've done the comments in the past by typing out the combinations of things that I don't want to match in between ,x#/\*([^*/]|\n|[^*]/|\*[^/]|\*\n)+\*/#d but the combinations expand rapidly as I try to match longer tags. Is there something else I should try? Thanks, Beirne