Skip to main content

検索置換ツール

検索置換ツールを使用して、データセットの1つの列で1つの文字列を検索し、それを別の文字列に置き換えます。検索置換ツールは、列を行に追加するときも使用できます。

ヒント

このツールには「ツールごとに学習」があります。サンプルワークフローへのアクセス を参照して、Designer Cloud でこのサンプルやその他の多くのサンプルに直接アクセスする方法を確認してください。

ツールコンポーネント

検索置換ツールには、2つのアンカーがあります。

  • F input anchor: This input is the initial input table ("F" for "Find"). This is the table that is updated in the tool's results.

  • R input anchor: (Optional) This input is the lookup table ("R" for "Replace"). This is the table that contains data used to replace data in (or append data to) the initial input.

  • 出力アンカー: 出力アンカーには、検索置換ツールの結果が表示されます。

ツールの設定

The Find Replace tool has 2 configuration modes depending on which anchors you use...

  • Manual Lookup Table: To manually enter a lookup table, you only need to connect to the F input anchor. In this case, the Find Replace tool configuration window has 3 sections: Lookup Table, Find, and Replace.

  • Dynamic Lookup Table: To dynamically use a lookup table, connect replacement data to the R input anchor. In this case, the Find Replace tool configuration window has 2 sections: Find and Replace.

セクションの置換

検索テーブル

検索するデータを [値の検索] 列に入力します。次に、見つかった値を置換するデータを [値の置換 ] 列に入力します。

セクションの検索

  1. 検索する列: テーブル内の置換対象のデータを含む列を選択します。

  2. 検索条件を選択します。

    • 次の値を含む: 列の任意の部分に存在する、列値のインスタンスを検索します。列全体に検索対象の値だけが含まれている必要はありません。

    • 次の値で始まる: 列の先頭に存在する、列値のインスタンスを検索します。列全体に検索対象の値だけが含まれている必要はありません。

    • 完全一致: 列全体に含まれる列値のインスタンスを検索します。このインスタンスは、完全な状態で存在していなければ新しい値に置き換えられません。

  3. 検索条件を選択 (オプション):

    • 大文字小文字を区別する: このオプションでは、検索時に大文字と小文字を区別します。

    • 単語全体一致のみ: 文字列は、先頭と末尾にスペースがある場合にのみ一致します。セルの先頭または末尾にある文字列の場合、もう一方の端にスペースが必要です。

セクションの置換

次のオプションを使用すると、データを置き換えることができます。

  • 見つかったテキストを置換:

    1. このオプションを選択すると、見つかったテキストが [検索テーブル] に入力したテキストと置き換えられます。

    2. 必要に応じて、[一致する項目をすべて置換] を選択します。これは最初のオプションで [次の値を含む] を選択した場合にのみ使用してください。

  • データの置換を使用して列を作成:

    1. このオプションを選択すると、選択された 値を探索 データが、選択された 検索する文字列の列 内で見つかったときはいつでも、検索テーブル データに入力された列が作成されます。

    2. 作成する列を選択します。

Dynamic Lookup Table Configuration

Find Section

  1. Search Criteria: Choose the search criteria...

    • Contains: This search function searches for the instance of the column value in any part of the column. The entire column does not have to contain only what is being searched for.

    • Starts With: Searches for the instance of the column value at the beginning of the column. The entire column does not have to only contain what is being searched for.

    • Exactly Equal To: Searches for the instance of the column value contained within the entire column. The instance has to be there in its entirety to be replaced with the new value.

  2. Column to Search: Select the column from the F input anchor with the data that you want to replace.

  3. Find Value: Select the column from the R input anchor that contains the data you want to search for in the Column to Search.

  4. Select optional search conditions...

    • Case Sensitive: This option includes the case in the search.

    • Match Whole Word Only: Strings are only matched if there are leading and trailing spaces. For strings at the beginning or end of a cell, there must be a space at the other end.

Replace Section

You can choose to replace data using these options...

  • Replace Found Text

    1. Choose this option to replace the found text with the text in the Replace Value column (from the R input anchor).

    2. Optionally select Replace All Matched Items. Only use this if you selected Contains from the Search Criteria option.

  • Create Columns with Replace Data

    1. Choose this option to create a column populated with the lookup table (R input anchor) data whenever the selected Find Values data is found within the selected Column to Search.

    2. Check the columns you want to create.