so I have hundreds of these lines below( i trimmed alot), I want to capture the DEFAULT value and set to 0.99 but only for the lines WITH <Movement display_name="Movement type can be session or system ,independent of type and min and max, I am new to REGEX, this is the best I could do, however its not what I want, I know there exist replace in regex but I wasnt able to finish the first part, please help
true true false true false true false true false true false true false true false RED BLUE YELLOW GREEN WHITE LIGHT GREY DARK GREY PURE RED ORANGE LIGHT BLUE DARK BLUE MAGENTA LIGHT GREEN
<!--Default Values-->
<Indexed display_name="Indexed" type="system" datatype="pos_int" max="4" min="1" security_level="SU"
default_value="2" />
<IndexingColor1 display_name="IndexingColor1" type="system" datatype="list" security_level="SU"
default_value="RED">
<Cube>
<ShowFrame display_name="ShowFrame" type="system" datatype="list" security_level="CU"
default_value="true">
<list>
<ListItem>true</ListItem>
<ListItem>false</ListItem>
</list>
</ShowFrame>
<ShowFixedPoint display_name="ShowFixedPoint" type="system" datatype="list" security_level="CU"
default_value="true">
<list>
<ListItem>true</ListItem>
<ListItem>false</ListItem>
</list>
</ShowFixedPoint>
<FixedPointPosition display_name="FixedPointPosition" type="system" datatype="list" security_level="AU"
default_value="0">
<list>
<ListItem>-1</ListItem>
<ListItem>-0.5</ListItem>
<ListItem>0</ListItem>
<ListItem>0.5</ListItem>
<ListItem>1</ListItem>
</list>
<Timing>
<FirstPresentation display_name="FirstPresentation" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
<Indexing display_name="Indexing" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
**<Movement display_name="Movement" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />**
<Pause display_name="Pause" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
<Feedback display_name="Feedback" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
<Answer display_name="Answer" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
<AutoValidate display_name="AutoValidate" type="system" datatype="float" max="0.0" min="0.0" security_level="CU"
default_value="0.0" />
</Timing>
MatchCollection Collections = Regex.Matches(parameters, "<Movement display_name=\"Movement\" type=\"(<type> .*?).*? min=\"(<min> .*?) .*? max=\"(<max> .*?)\" />", RegexOptions.Singleline);
foreach(Match match in Collections)
{
Console.WriteLine(match.Groups["type"].Value);
Console.WriteLine(match.Groups["max"].Value);
}