mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 18:07:01 +00:00
fc5c87e213
git-subtree-dir: libsodium git-subtree-split: 60329a84ef7edb278b949c53c640031e44ce0157
13 lines
294 B
Plaintext
13 lines
294 B
Plaintext
Dim pat, patparts, rxp, inp
|
|
pat = WScript.Arguments(0)
|
|
patparts = Split(pat, "/")
|
|
Set rxp = new RegExp
|
|
rxp.Global = True
|
|
rxp.Multiline = False
|
|
rxp.Pattern = patparts(1)
|
|
Do While Not WScript.StdIn.AtEndOfStream
|
|
inp = WScript.StdIn.ReadLine()
|
|
WScript.Echo rxp.Replace(inp, patparts(2))
|
|
Loop
|
|
|