Replace
iill_rxRegexReplace( Regex ; source ; replacewith )
正規表現 Replace
構文
iill_rxRegexReplace( 正規表現パターン ; 検索対象文字列 ; 置換後文字列 )
引数
iill_rxRegexReplace( 正規表現パターン ; 検索対象文字列 ; 置換後文字列 )
戻り値
置換された文字列
説明
正規表現パターンで文字列を置換します。
.NET Framework の正規表現をFileMakerから利用できるようにした関数です。
下記を参照して下さい。
.NET Framework の正規表現
http://msdn.microsoft.com/ja-jp/library/hs600312.aspx
例
HTMLタグを削除します。
Regexフィールド内容 = "<.*?>"
sourceフィールド内容 = "<html><head><title>タイトル</title></head><body>ボディ</body></html>"
iill_rxRegexReplace( Regex ; source ; "" ) は、"タイトルボディ" を返します。