J
Julius Fuchs
Hi,
I have a string like "bla<cut>blubb<cut>bla<cut>blubb" 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>blubb", "TEST");
I have a string like "bla<cut>blubb<cut>bla<cut>blubb" 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>blubb", "TEST");