Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような文字列があります。
"<font color=\"Red\">"
どの色にも一致する正規表現が必要です。以下の正規表現を試してみましたが、うまくいきませんでした。誰か提案はありますか?
string pattern = "/<font[^>]*>/"; string newTag = Regex.Replace(txt_htmlBody.Text, pattern, "<font color=\"Black\">");