home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,549 of 68,980   
   dr.j.r.stockton@gmail.com to dr.j.r...@gmail.com   
   Re: Remove all but digits   
   26 May 20 05:08:24   
   
   On Tuesday, 26 May 2020 11:09:02 UTC+1, dr.j.r...@gmail.com  wrote:   
      
   > AFAICS, not yet tried, one should be able to compose REGLARXP.JS   
   > such that, in a batch file,   
   >   
   >       CSCRIPT //nologo REGLARXP.JS SRC "regexp" Sub DST   
   >   
   > will always serve, where SRC & DST are environment variable   
   > names, and REGLARXP.JS uses String.replace(Arg2, Arg3); the   
   > RegExp for removing all non-ASCIIdigits would /\D+/g and Sub   
   > is "".   
      
   REVISION : so far so good, but "regexp" must be replaced by two   
   parts, the main expression and the modifiers, to be joined by   
   new RegExp if using JavaScript.   
      
   --   
     (c) John Stockton, near London, UK.  Using Google Groups.   
      Mail: J.R.""""""""@physics.org - or as Reply-To, if any.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca