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
精彩评论