LoginSignup
0
0

More than 3 years have passed since last update.

正規表現メモ C#

Posted at

CSVファイルの中に含まれる不正な文字を、正しい(期待する)値に変更したい。

var expected = Regex.Replace(str1, "{正規表現パターン}", "{置換パターン}");

文字列("区切り)の中に、"が含まれている場合

var expected = Regex.Replace(str1, "[Z-a0-9]\"\"," , "$1\",");

参考

正規表現を使って文字列を置換するには?[C#/VB]:.NET TIPS - @IT

0
0
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
0
0