diff options
author | Micah Anderson <micah@riseup.net> | 2014-08-11 13:49:21 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2014-08-11 13:49:21 -0400 |
commit | 2e59f9740a29439df7c7a56cf0ae83dec3081d31 (patch) | |
tree | d5e7c4e74c9a0f1ea999327d2e68b1dd27be00e0 /msvc-scripts/rep.vbs |
initial import of debian version from mentors0.6.1
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 + |