开发者

VBScript RegExp IE8 Addons inventory script

开发者 https://www.devze.com 2023-03-23 00:32 出处:网络
IE8 Add-ons export script (vbscript) I am attempting to parse a text file that match开发者_C百科es a string \"DllName\" and then writes everything following DLLName will be written to a text file.

IE8 Add-ons export script (vbscript)

I am attempting to parse a text file that match开发者_C百科es a string "DllName" and then writes everything following DLLName will be written to a text file.

What would be the regular expression for this?

Set objRegEx = CreateObject("VBScript.RegExp")

objRegEx.Pattern =


What about

objRegEx.Pattern = "\bDllName.*"

\b is a word boundary that ensures there is not a word character before.

. matches any character (but no newline character)

* quantifier, matches the previous expression (here: any character) 0 or more times

0

精彩评论

暂无评论...
验证码 换一张
取 消