Refactoring st3 (untested/uncomplete)

This commit is contained in:
2020-11-17 00:02:33 +03:00
parent d81308ad4d
commit 963a934f51
10 changed files with 239 additions and 129 deletions

11
sed.vbs Normal file
View File

@@ -0,0 +1,11 @@
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