9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] regexp not greedy enough
@ 2004-05-12 13:22 Matthias Teege
  2004-05-12 13:57 ` rog
  2004-05-12 18:28 ` boyd, rounin
  0 siblings, 2 replies; 11+ messages in thread
From: Matthias Teege @ 2004-05-12 13:22 UTC (permalink / raw)
  To: 9fans

as you know trying to use sam for editing. ;-) I have another
problem with a regexp. I comment out some text with s:(.|\n)*:/*\n&\n*/:
This works but now I try to delete all comments. First I try
to select the region with /\/\*[^\/]*. But the regexp stops at
the first '\n'.

Why? How do I get the whole region?
Matthias


^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: [9fans] regexp not greedy enough
@ 2004-05-12 17:06 Tiit Lankots
  2004-05-12 17:20 ` Russ Cox
  0 siblings, 1 reply; 11+ messages in thread
From: Tiit Lankots @ 2004-05-12 17:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

 
> Why? How do I get the whole region?

,x:/\*: .,/\*\//d

RTFM /sys/doc/sam/sam.ps
 


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-12 19:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 13:22 [9fans] regexp not greedy enough Matthias Teege
2004-05-12 13:57 ` rog
2004-05-12 17:14   ` Russ Cox
2004-05-12 18:42     ` rog
2004-05-12 18:46       ` Scott Schwartz
2004-05-12 19:21         ` rog
2004-05-12 18:53       ` Russ Cox
2004-05-12 18:28 ` boyd, rounin
2004-05-12 18:46   ` rog
2004-05-12 17:06 Tiit Lankots
2004-05-12 17:20 ` Russ Cox

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).