3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Power Automate Desktop Tips - 空白文字を置換する -

Posted at

概要

タイトル通りですが、「テキストを置換する」アクションで
空白文字を使う方法の備忘録です。

方法

例えば、「テキストを置換する」アクションで、
(正規表現を使わずに)ある文字列を違う文字列に置換するなら、
以下のような感じで入力すればOKです。
image.png

で、今回は半角の空白文字を全角の空白文字にしたかったので、
検索するテキストに半角の空白を、
置き換え先のテキストに全角の空白を入力してみたら、
こんな感じでエラーが表示されます・・・。
image.png

「中田 」や「hogehoge 」というように、文字列の後に空白文字がある場合は
エラーも表示されず、処理も正常に実行できました。
どうやら空白文字だけ入力されているとエラーとなるみたいですね。

空白文字だけを検索したい、空白文字に置換したい場合には、
「%' '%」や「%' '%」と入力するとできます。
image.png

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?