Regex.Replace メソッド (String, String)

入力文字列の最初の文字から検索を開始し、指定した正規表現パターンに一致する対象をすべて置換文字列で置き換えます。

Overloads Public Function Replace( _
   ByVal input As String, _   ByVal replacement As String _) As String
[C#]
public string Replace(stringinput,stringreplacement);
[C++]
public: String* Replace(String* input,String* replacement);
[JScript]
public function Replace(
   input : String,replacement : String) : String;

パラメータ

  • input
    変更対象の文字列。
  • replacement
    置換文字列。

戻り値

変更後の文字列。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

Regex クラス | Regex メンバ | System.Text.RegularExpressions 名前空間 | Regex.Replace オーバーロードの一覧