sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* Matching shortest string in se's
@ 1995-08-04 19:54 hc05
  0 siblings, 0 replies; only message in thread
From: hc05 @ 1995-08-04 19:54 UTC (permalink / raw)
  To: sam-fans


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-04 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-08-04 19:54 Matching shortest string in se's hc05

sam-fans - fans of the sam editor

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/sam-fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 sam-fans sam-fans/ http://inbox.vuxu.org/sam-fans \
		sam-fans@hawkwind.utcs.toronto.edu
	public-inbox-index sam-fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.sam-fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git