vba-text-editor

RegExpController

Property

code

Public Property Get code() As Long

メソッド実行直後の終了コードを返す。

GlobalMatch

Public Property
  Get GlobalMatch() As Boolean
  Let GlobalMatch(boolGlobalMatch As Boolean)

正規表現による文字列操作の有効範囲を表す真偽値を返す。

パラメータ:

Method

selectString

Public Sub selectString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String
)

正規表現パターンに合致する文字列を持つ行のみを抽出する。

パラメータ:

deleteString

Public Sub deleteString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String
)

正規表現パターンに合致する文字列を持つ行を削除する。

パラメータ:

replaceString

Public Sub replaceSubString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String,
  strReplacement As String
)

正規表現パターンに合致する文字列を新しい文字列に置換する。

パラメータ:

replaceString

Public Sub replaceString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String,
  strReplacement As String
)

正規表現パターンに合致する文字列を持つ行全体を新しい文字列に置換する。

パラメータ:

insertString

Public Sub insertString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String,
  strNewLine As String
)

正規表現パターンに合致する文字列を持つ行の一つ前の行に新しい文字列を挿入する。

パラメータ:

addString

Public Sub addString(
  strSrcPath As String,
  strDstPath As String,
  strPattern As String,
  strNewLine As String
)

正規表現パターンに合致する文字列を持つ行の一つ後の行に新しい文字列を挿入する。

パラメータ:

HOME