Article View: alt.lang.teco
Article #6Re: Religious question -- negative arguments for S
From: David Morrison
Date: Wed, 09 Sep 1992 02:40
Date: Wed, 09 Sep 1992 02:40
13 lines
1275 bytes
1275 bytes
In article <DRW.92Sep8135859@nevanlinna.mit.edu>, drw@nevanlinna.mit.edu (Dale R. Worley) writes: > If one searches backwards (using a negative argument to S), is the > point left at the beginning of the string (so that -Sstring$ when > executed repeatedly finds successive occurrences backwards), or is the > point left at the end of the string (as when S searches forward)? In the absence of any modifying characteristics, the pointer is left at the end of the string always. A subsequent -s...$ will find the same string again. You have to do -2s$ or ^S-1r-s$ to find the next previous occurrence. -- David Morrison, Manager, Networks and Comms, Uni of Newcastle, Australia sysnet@cc.newcastle.edu.au or (VAX PSI) psi%0505249626002::sysnet Phone: +61 49 215397 Fax: +61 49 216910
Technical Details
Message-ID:
<1992Sep9.124025.1@cc.newcastle.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!cc.newcastle.edu.au!sysnetReferences:
<DRW.92Sep8135859@nevanlinna.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.teco Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!cc.newcastle.edu.au!sysnet From: sysnet@cc.newcastle.edu.au (David Morrison) Subject: Re: Religious question -- negative arguments for S Message-ID: <1992Sep9.124025.1@cc.newcastle.edu.au> Lines: 13 Sender: news@seagoon.newcastle.edu.au Organization: University of Newcastle, AUSTRALIA References: <DRW.92Sep8135859@nevanlinna.mit.edu> Date: Wed, 9 Sep 1992 02:40:25 GMT