forked from cory/tildefriends
Cory McWilliams
424b9b5a2f
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4490 ed5197a5-7fde-0310-b194-c3ffbd925b24
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
|
|
|