diff options
Diffstat (limited to 'msvc-scripts/rep.vbs')
-rw-r--r-- | msvc-scripts/rep.vbs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/msvc-scripts/rep.vbs b/msvc-scripts/rep.vbs new file mode 100644 index 0000000..3611f6c --- /dev/null +++ b/msvc-scripts/rep.vbs @@ -0,0 +1,12 @@ +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 + |