xref: /freebsd/sys/contrib/libsodium/msvc-scripts/rep.vbs (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1Dim pat, patparts, rxp, inp
2pat = WScript.Arguments(0)
3patparts = Split(pat, "/")
4Set rxp = new RegExp
5rxp.Global = True
6rxp.Multiline = False
7rxp.Pattern = patparts(1)
8Do While Not WScript.StdIn.AtEndOfStream
9  inp = WScript.StdIn.ReadLine()
10  WScript.Echo rxp.Replace(inp, patparts(2))
11Loop
12
13