sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
From: hc05@summitis.com
To: sam-fans@hawkwind.utcs.toronto.edu
Subject: Matching shortest string in se's
Date: Fri, 4 Aug 1995 15:54:54 -0400	[thread overview]
Message-ID: <9508041854.AA18826@cheetah> (raw)


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 (<pre>...</pre>).  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



                 reply	other threads:[~1995-08-04 19:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9508041854.AA18826@cheetah \
    --to=hc05@summitis.com \
    --cc=sam-fans@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).