From: rowlett@access.net   
      
   On 07/03/2024 06:46 AM, Kenny McCormack wrote:   
   > In article ,   
   > Richard Owlett wrote:   
   > ...   
   >>> This regex expression should do what you want:   
   >>> [[:digit:]]{3}   
   >>>   
   >>   
   >> I suspect that would accept a value of "0".   
   >> *ERROR* with results I don't wish to contemplate.   
   >   
   > I suspect that what you want to do actually can't be done (accurately) with   
   > regexps, if we interpret your requirements literally. Most responders so   
   > far have pretty much glossed over your requirements.   
      
   You noticed < *GRIN* >   
   Unfortunately that's fairly common on USENET.   
   I'm used to windowing "wheat" from "chaff".   
      
   > For example, while   
   > you want to match (and replace) XYZ299, you want to leave XYZ300 alone.   
      
   Actually its more the case that for _my_ application XYZ300 and above   
   physically cannot exist.   
      
   >   
   > You probably need a programming languages (such as AWK) to do this correctly.   
      
   No. Further in this thread Janis Papanagnou demonstrated what I needed.   
      
   >   
   > Note, BTW, that the real problem with regexps is that there are so many   
   > different implementations. Supposedly, there is a standard - actually,   
   > multiple standards - but each implementation is subtly different. For   
   > example, sometimes you need \ before special characters like ( or { or ?   
   > and sometimes you don't (depending on which implementation you are using).   
   >   
      
   Yepp.   
   That's why my "Subject:" AND first sentence explicitly reference Kate.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|