Thursday, 29 August 2013

Match expression not starting with

Match expression not starting with

I need to replace in a string all expressions of type "< input >" not
starting with "}". Which is the right regex expression to do that?
Example
strTest = "{ text string }<input> text<input>";
strRegex = ;//which value?
strResult = Regex.Replace(strTest, strRegex , "");
strResult should return
{ text string }<input> text

No comments:

Post a Comment