Hi,
I have a string like "bla<cut>blubb< cut>bla<cut>blu bb" and want to replace
the substring from the first occurrence of <cut> to the second with "TEST"
in order to get "blaTESTbla<cut >blubb".
So far I only managed to get blaTESTblubb:
Regex iRegex = new Regex("<cut>.*< cut>");
return iRegex.Replace( "bla<cut>blubb< cut>bla<cut>blu bb", "TEST");
I have a string like "bla<cut>blubb< cut>bla<cut>blu bb" and want to replace
the substring from the first occurrence of <cut> to the second with "TEST"
in order to get "blaTESTbla<cut >blubb".
So far I only managed to get blaTESTblubb:
Regex iRegex = new Regex("<cut>.*< cut>");
return iRegex.Replace( "bla<cut>blubb< cut>bla<cut>blu bb", "TEST");
Comment