正規表現は、主に検索と置換に使用されるパターンを形成する一連の文字です。パターンを作成する目的は特定の文字列を照合することであるため、条件に基づいて文字を抽出し、特定の文字を置換できます。
次のコードは、RegExpオブジェクトの作成方法を示しています:
RegExp
オブジェクト名: VBScript.RegExp
VBScript.RegExp
Dim regExpObj ' Create a variable. Set regExpObj = CreateObject("VBScript.RegExp")
Scripting on this page enhances content navigation, but does not change the content in any way.