Article View: vmsnet.tpu
Article #103Re: Pattern
From: Carl J Lydick
Date: Thu, 31 Dec 1992 17:33
Date: Thu, 31 Dec 1992 17:33
29 lines
1837 bytes
1837 bytes
In article <1hsqeoINNmqe@usenet.INS.CWRU.Edu>, at913@cleveland.Freenet.Edu (Mirko Vukovic) writes:
>predig:=span('0123456789'); <--- for aaaa
>posdig:=anchor&span('0123456789'); <--- for bbbb
>per:='.'; <--- for .
>exp:=anchor&(notany('dD')|line_end); <--- for X
>
>find :=((predig&per&exp)|(per&posdig&exp)|(predig&per&posdig&exp));
>
>However the above does detect numbers like 123.12D00, ie if I have more than one
>digit after the period followed by D.
It also does not detect numbers like 123.12. In particular, it only picks up
the "123.1" part of i.
>Is that because in posdig anchor forces the span to match only one character?
No, it's because the exp picks up only one character.
>Also, how do I put a cursor on the end of a range?
position(end_of(range));
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
Technical Details
Message-ID:
<1hvat0INNfdu@gap.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARLReferences:
<1hsqeoINNmqe@usenet.INS.CWRU.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Newsgroups: vmsnet.tpu Subject: Re: Pattern Date: 31 Dec 1992 17:33:20 GMT Organization: HST Wide Field/Planetary Camera Lines: 29 Distribution: world Message-ID: <1hvat0INNfdu@gap.caltech.edu> References: <1hsqeoINNmqe@usenet.INS.CWRU.Edu> Reply-To: carl@SOL1.GPS.CALTECH.EDU NNTP-Posting-Host: sol1.gps.caltech.edu