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,551 of 68,980    |
|    dr.j.r.stockton@gmail.com to Robert Prins    |
|    Re: Remove all but digits    |
|    26 May 20 03:09:00    |
      On Monday, 25 May 2020 20:01:39 UTC+1, Robert Prins wrote:              > If all you have is a hammer, everything looks like a nail!              But if you/colleagues/readers/users can be relied upon to have       Windows, then very much that is difficult to write/read in       pure batch can be done much more readily by using CSCRIPT to       call a .VBS or .JS file.              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 "".              But maybe it cannot work, because, if it did, the technique should already be       well-known here.              --        (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