Hot answers tagged regex
Indeed The error means that in the absence of quotes, your shell uses spaces to separate arguments. The space between maxmemory and 26gb is thus considered as terminating the first argument, which thus lacks a terminal / when sed comes to parse that argument as one of its commands. Putting your regex between single quotes, so that your shell doesn't split ...
Sub test() Dim RE As Object Set RE = CreateObject("VBScript.RegExp") RE.ignoreCase = True RE.Global = True RE.Pattern = "\b[a-z]+\b" Debug.Print RE.Replace("Findings,Actions", "xyz") End Sub Output xyz,xyz
Only top voted, non community-wiki answers of a minimum length are eligible