How can I use Regex.Replace to achieve the flowing: Given the input string:
"DV_DHW dv_DWH dv_dwh Dv_Dwh some more text dv_dwhtest"
I want to change it to :
"Test_DV_DHW Test_DV_DHW Test_DV_DHW Test_DV_DHW some more text dv_dwhtest"
I tried this:
Regex.Replace("Test_DV_DHW Test_DV_DHW Test_DV_DHW Test_DV_DHW some more text dv_dwhtest", "DV_DHW", "Test_DV_DHW", RegexOptions.IgnoreCase);
But it replace just the first instance of DV_DHW (case sensitive)