はこふぐのメモ

めもです

自分へのメモ BluePrism 正規表現にマッチするか調べる Test Regex Match

正規表現による文字列チェックはどんな開発でもおなじみ。

BluePrismで使うには、Utility-StringsにあるText Regex Matchが使える。

 

Utility-Strings Text Regex Match

Check if a given Text value matches a regular expression

f:id:sazanamifugu:20191115230417p:plain

入力パラメータは

Regex Pattern 正規表現

Target String  テストする文字列

 

f:id:sazanamifugu:20191115230517p:plain

出力パラメータは、

Matched?  一致したTrue/一致しないFalse

 

Text Regex Matchを使ったSample。

「^[Bb]lue[Pp]rism$」という正規表現を・・・

f:id:sazanamifugu:20191115230944p:plain

このような文字列に対してチェック。

f:id:sazanamifugu:20191115231213p:plain

実行。

f:id:sazanamifugu:20191115231301p:plain

結果

f:id:sazanamifugu:20191115231336p:plain

 

プライバシーポリシー
©2019 はこふぐのメモ All rights reserved