Re: Q: // and "magic"
- From: xhoster@xxxxxxxxx
- Date: 08 Apr 2005 16:39:11 GMT
Joe Smith <joe@xxxxxxxxx> wrote:
> xhoster@xxxxxxxxx wrote:
>
> >> If the PATTERN evaluates to the empty string, the last
> >> *successfully* matched regular expression is used instead. In
> >> this case, only the "g" and "c" flags on the empty pattern is
> >> honoured - the other flags are taken from the original pattern.
> >> If no match has previously succeeded, this will (silently) act
> >> instead as a genuine empty pattern (which will always match).
> >
> > So, does anyone find this behavior useful? I've never intentionally
> > used it, and I can't imagine doing so in the future.
>
> That's the way vi works. (And jove but not emacs.)
My version of vi doesn't work that way. It uses the most recently
specified search, not the most recently successful search. (But I just use
'n' when I want to repeat a search, so I could ask the same question
on this vi feature as I did on the Perl one.)
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- Q: // and "magic"
- From: J Krugman
- Re: Q: // and "magic"
- From: A. Sinan Unur
- Re: Q: // and "magic"
- From: xhoster
- Re: Q: // and "magic"
- From: Joe Smith
- Q: // and "magic"
- Prev by Date: Re: Perl function for negative integers using the 2's complement in hex?
- Next by Date: Re: Help with regular expression
- Previous by thread: Re: Q: // and "magic"
- Next by thread: FAQ 7.29 What does "bad interpreter" mean?
- Index(es):
Relevant Pages
|
Loading